为 azure vm 和 Godaddy 配置自定义域名 [英] configuring a custom domain name for an azure vm and godaddy

查看:19
本文介绍了为 azure vm 和 Godaddy 配置自定义域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我开始在 azure 上配置我的虚拟机,我用 nginx 部署了 4 个项目,但是我在用 Godaddy 配置我的虚拟机时遇到了问题.在Godaddy配置域名,我需要设置最少2个DNS地址,但是我的VM只有一个DNS地址.有人可以告诉我如何在我的 VM 中允许多个 DNS 地址,或者至少如何绕过这个问题并使我的 VM 与 Godaddy 一起正常工作.

Recently I have started to configure my VM at azure I deployed 4 projects with nginx but I have a problem to configure my VM with godaddy. To configure a domain name in Godaddy, I need to set minimum 2 DNS address, but my VM has only one DNS address. Can someone show me how to allow more than one DNS address in my VM or at least how to bypass this issue and make my VM work fine with Godaddy.

推荐答案

DNS 区域用于托管特定域的 DNS 记录.若要开始在 Azure DNS 中托管域,需要为该域名创建 DNS 区域.然后在此 DNS 区域内为您的域创建每个 DNS 记录.最后,要将您的 DNS 区域发布到 Internet,您需要为域配置名称服务器.

A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. Finally, to publish your DNS zone to the Internet, you need to configure the name servers for the domain.

这些步骤中的每一个都在以下步骤中进行了描述:

步骤 1: 首先创建 Azure 虚拟机.

Step1: First create the Azure Virtual Machines.

第 2 步:要获取 DNS 地址,您需要使用您的域名创建 DNS 区域.

Step2: To get DNS addresses, you need create DNS zones with your domain name.

转到 Azure 门户 => 新建 => 搜索 DNS 区域 => 创建 DNS 区域

Go to Azure Portal => New => search DNS zones => Create DNS zones

名称= azurewala.com、订阅、资源组和位置

Name= azurewala.com, Subscription, Resource Group, and Location

步骤 3: 创建 Azure DNS 区域后,您可以看到四个名称服务器.

Step3: Once Azure DNS zones created you can see four Name Servers.

第 4 步:转到 GoDaddy 控制面板并点击 DNS.

Step4: Go to GoDaddy control panel and click on the DNS.

第 5 步:通过选择您的新名称服务器类型来更改名称服务器:自定义

Step5: Change the Nameservers by choose your new nameserver type as: Custom

注意:将名称服务器从 Azure DNS 复制并粘贴到 GoDaddy

Note: Copy and paste the Name Servers from Azure DNS to GoDaddy

并确保在保存之前必须删除多余的点.

And make sure you have to remove the extra dot before you save.

步骤 6: 打开创建的 DNS 区域并添加记录集

Step6: Open Created DNS Zones and add a record set

名称: www
类型: A
TTL:1 小时

IP 地址: 52.176.102.178

IP ADDRESS: 52.176.102.178

注意:提供虚拟机的 IP 地址.

Note: Give IP Address of the VM.

有关详细信息,请参阅Azure 入门使用 Azure 门户的 DNS

For more details, refer Get started with Azure DNS using the Azure Portal

这篇关于为 azure vm 和 Godaddy 配置自定义域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆