I have a German VPS located at Germany. Its Public IP is like 5.179.x.x
I want to use Azure DNS Zone for this server. I want to use ns1.MyWebSite.com as name server for all of my clients.
I have Created DNS Zone in Azure but Confused that Where to put/write my Name Server (ns1.MyWebsite.com) and where to put my Website where Azure going to Resolve or Direct ?
答案 0 :(得分:2)
您是否拥有域名(从第三方购买)?
如果是,您可以按照这些步骤将您的域名映射到Azure DNS区域:
1.通过Azure门户添加记录集,指向您的Azure VM:
2.将 NS记录添加到第三方域名注册,在我的测试中,我的域名从register.com
购买,所以设置如下:
Host: web.jasonye.com
Record type: NS record
Value: ns1-01.azure-dns.com
几分钟后,您可以使用nslookup
验证名称资源是否有效:
nslookup -type=SOA jasonye.com
3.以下是上述命令的示例响应:
C:\Users>nslookup -type=SOA jasonye.com
Server: UnKnown
Address: 2404:f801:10:12e:fe::2
Non-authoritative answer:
jasonye.com
primary name server = ns1-01.azure-dns.com
responsible mail addr = azuredns-hostmaster.microsoft.com
serial = 1
refresh = 3600 (1 hour)
retry = 300 (5 mins)
expire = 2419200 (28 days)
default TTL = 300 (5 mins)
ns1-01.azure-dns.com internet address = 40.90.4.1
然后您可以使用IE或其他浏览器访问它:
有关Azure DNS的详细信息,请参阅此article。
每个注册商都有自己的DNS管理工具来更改名称 域的服务器记录。在注册商的DNS管理页面中, 编辑NS记录并用Azure DNS替换NS记录 创建
希望这有帮助。