我有一个域名注册了active-domain.com,昨天我将我的名字服务器更改为我的主机,但后来我决定在最后一刻切换我的主机并再次更改它们.现在,大约24小时后,该网站仍会偶尔拉起旧主机上的网站.如果我清除缓存和flushdns,它通常会自行解析.它也发生在我网站的其他访问者身上.有什么建议?
解决方法
您的TTL设置为24小时:
iMac-van-Bart:~ ikbenbart$dig comegetheated.com ; <<>> DiG 9.6.0-APPLE-P2 <<>> comegetheated.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY,status: NOERROR,id: 40315 ;; flags: qr rd ra; QUERY: 1,ANSWER: 1,AUTHORITY: 13,ADDITIONAL: 13 ;; QUESTION SECTION: ;comegetheated.com. IN A ;; ANSWER SECTION: comegetheated.com. 86330 IN A 212.95.48.105 ;; AUTHORITY SECTION: com. 82668 IN NS c.gtld-servers.net. com. 82668 IN NS d.gtld-servers.net. com. 82668 IN NS e.gtld-servers.net. com. 82668 IN NS f.gtld-servers.net. com. 82668 IN NS g.gtld-servers.net. com. 82668 IN NS h.gtld-servers.net. com. 82668 IN NS i.gtld-servers.net. com. 82668 IN NS j.gtld-servers.net. com. 82668 IN NS k.gtld-servers.net. com. 82668 IN NS l.gtld-servers.net. com. 82668 IN NS m.gtld-servers.net. com. 82668 IN NS a.gtld-servers.net. com. 82668 IN NS b.gtld-servers.net. ;; ADDITIONAL SECTION: b.gtld-servers.net. 85051 IN A 192.33.14.30 b.gtld-servers.net. 18866 IN AAAA 2001:503:231d::2:30 c.gtld-servers.net. 29970 IN A 192.26.92.30 d.gtld-servers.net. 29666 IN A 192.31.80.30 e.gtld-servers.net. 30226 IN A 192.12.94.30 f.gtld-servers.net. 29971 IN A 192.35.51.30 g.gtld-servers.net. 2681 IN A 192.42.93.30 h.gtld-servers.net. 13633 IN A 192.54.112.30 i.gtld-servers.net. 30226 IN A 192.43.172.30 j.gtld-servers.net. 29951 IN A 192.48.79.30 k.gtld-servers.net. 30717 IN A 192.52.178.30 l.gtld-servers.net. 30225 IN A 192.41.162.30 m.gtld-servers.net. 29969 IN A 192.55.83.30 ;; Query time: 4 msec ;; SERVER: 192.168.220.1#53(192.168.220.1) ;; WHEN: Fri Jun 10 15:22:07 2011 ;; MSG SIZE rcvd: 495
您可能希望将其设置为较低的值(4h左右),以防止将来出现这种情况.但是现在你无能为力.只需等待DNS解析过期即可.