DNS服务器迁移

我试图将我的DNS服务器从178.32.xx.xx迁移到162.243.xx.xx,但是一旦closures第一台服务器(178),一些用户就会报告该站点处于脱机状态。 我也使用WhatsMyDNS进行了检查,一旦我在178上启用了命名关系,几乎所有的全球DNS复制器都会为该网站的A条目显示一个X.

我已经禁用了从属DNS,并将所有IP条目更改为162,包括NSlogging,现在全部指向162。已经过了一个多星期了,我无法closures旧服务器,或者一切都将脱机。

我使用ZPanel进行DNS条目pipe理,但我已经检查了区域文件,它们都是正确的,指向162。如果我离开旧服务器,并检查WhatsMyDNS,一切都很好。 如果我转过来,恐怖!

有什么我失踪? 谢谢你的帮助。

问题出在.com.br根服务器上。

为了达到这一点,我开始findorg根服务器,因为我们想要azulvirtual.org

 > dig org NS ; <<>> DiG 9.6-ESV-R4-P3 <<>> org NS ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12744 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;org. IN NS ;; ANSWER SECTION: org. 5827 IN NS a0.org.afilias-nst.info. org. 5827 IN NS a2.org.afilias-nst.info. org. 5827 IN NS b0.org.afilias-nst.org. org. 5827 IN NS b2.org.afilias-nst.org. org. 5827 IN NS c0.org.afilias-nst.info. org. 5827 IN NS d0.org.afilias-nst.org. ;; Query time: 10 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Thu Dec 5 10:41:41 2013 ;; MSG SIZE rcvd: 159 

然后从其中一个请求你的名字服务器:

 > dig @a0.org.afilias-nst.info azulvirtual.org NS ; <<>> DiG 9.6-ESV-R4-P3 <<>> @a0.org.afilias-nst.info azulvirtual.org NS ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63061 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;azulvirtual.org. IN NS ;; AUTHORITY SECTION: azulvirtual.org. 86400 IN NS ns2.sirothost.com.br. azulvirtual.org. 86400 IN NS ns1.sirothost.com.br. ;; Query time: 213 msec ;; SERVER: 199.19.56.1#53(199.19.56.1) ;; WHEN: Thu Dec 5 10:41:57 2013 ;; MSG SIZE rcvd: 85 

到目前为止这是正确的结果。 但现在我们需要findns1.sirothost.com.brns2.sirothost.com.br 。 为此,我们需要com.br根服务器:

 > dig com.br NS ; <<>> DiG 9.6-ESV-R4-P3 <<>> com.br NS ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39126 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;com.br. IN NS ;; ANSWER SECTION: com.br. 21600 IN NS c.dns.br. com.br. 21600 IN NS b.dns.br. com.br. 21600 IN NS d.dns.br. com.br. 21600 IN NS e.dns.br. com.br. 21600 IN NS f.dns.br. com.br. 21600 IN NS a.dns.br. ;; Query time: 65 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Thu Dec 5 10:42:22 2013 ;; MSG SIZE rcvd: 124 

然后问其中的一个ns1.sirothost.com.br 。 这是我们得到错误的IP地址的地方。

 > dig @b.dns.br ns2.sirothost.com.br ; <<>> DiG 9.6-ESV-R4-P3 <<>> @b.dns.br ns2.sirothost.com.br ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46093 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 2 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;ns2.sirothost.com.br. IN A ;; AUTHORITY SECTION: sirothost.com.br. 86400 IN NS ns1.sirothost.com.br. sirothost.com.br. 86400 IN NS ns2.sirothost.com.br. ;; ADDITIONAL SECTION: ns1.sirothost.com.br. 86400 IN A 178.32.65.90 ns2.sirothost.com.br. 86400 IN A 54.213.72.90 ;; Query time: 208 msec ;; SERVER: 200.189.41.10#53(200.189.41.10) ;; WHEN: Thu Dec 5 10:42:53 2013 ;; MSG SIZE rcvd: 102 

请注意,我直接从权威人士处进行挖掘,因此这里没有涉及caching。 这个问题不会通过等待来解决。

这些是您的注册商(或更确切地说是sirothost.com.br的注册sirothost.com.br )向根服务器提供的粘合logging。

你可以通过告诉注册服务商azulvirtual.org你想使用不同的域名服务器(不是ns1.sirothost.com.brns2.sirothost.com.br )或告诉注册服务商sirothost.com.br该域的名称服务器有一个新的IP地址。

要理解为什么我必须提出所有这些请求,请仔细阅读规范。 为什么DNS以它的方式工作? Andrew B的答案是caching如何影响+使用dig来跟踪查询 。