更改名称服务器后子域不工作 [英] Subdomain not working after changing the nameservers

查看:173
本文介绍了更改名称服务器后子域不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Microsoft Azure 中托管了我的网站。我已从 register.com 购买域名。



我已经使用Linux虚拟机进行项目部署。



假设我的网站名称是示例.COM 即可。我已经创建了一个名为 app.example.com



的子域名,但是当我创建了一个DNS区域资源在我的天蓝色帐户&在我的register.com网站更新这些名称服务器名称。

解决方案

根据您的描述,我们可以按照这些步骤设置Azure DNS区域和您的域名:

1.通过azure门户添加记录集,指向您的Azure VM:



有关Azure DNS区域的详细信息,请检查链接


每个注册商都有自己的DNS管理工具来更改域的名称
服务器记录。在注册商的DNS管理页面中,
编辑NS记录,并用创建的Azure DNS
替换NS记录。



I have hosted my website in Microsoft Azure. I have purchased the domain from register.com.

I have used a Linux VM for my project deployment.

Suppose my website name is example.com. I have created a sub domain for it called app.example.com

It was working fine but its not working when i created a DNS Zone resource in my azure account & updated those nameserver name in my register.com site.

解决方案

According to your description, we can follow those steps to setup Azure DNS zone and your domain name:
1. Add record set via azure portal, point to your Azure VM:

2.Add NS record to register.com, like this:

Host: web.jasonye.com  
Record type:     NS record  
Value:    ns1-01.azure-dns.com 

After a few mins, we can use nslookup to verify name resoution is working or not:

nslookup -type=SOA jasonye.com

The following is an example response from the preceding command:

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

After that, we can access this web via IE:

More information about Azure DNS zone, please check this link.

Each registrar has their own DNS management tools to change the name server records for a domain. In the registrar's DNS management page, edit the NS records and replace the NS records with the ones Azure DNS created.

这篇关于更改名称服务器后子域不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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