dig:一个用于DNS查询的工具,比nslookup好用得多。

windows版的dig命令下载地址:http://members.shaw.ca/nicholas.fong/dig/dig-files3.zip

centos下的安装 yum install bind-utils

例如要查询域名的生效过程,使用+trace参数。例如

dig taovps.net +trace

可能会得出类似下面的结果

; <<>> DiG 9.3.2 <<>> taovps.net +trace
;; global options:  printcmd
.            506983    IN    NS    d.root-servers.net.
.            506983    IN    NS    b.root-servers.net.
.            506983    IN    NS    f.root-servers.net.
.            506983    IN    NS    m.root-servers.net.
.            506983    IN    NS    a.root-servers.net.
.            506983    IN    NS    g.root-servers.net.
.            506983    IN    NS    j.root-servers.net.
.            506983    IN    NS    l.root-servers.net.
.            506983    IN    NS    k.root-servers.net.
.            506983    IN    NS    h.root-servers.net.
.            506983    IN    NS    i.root-servers.net.
.            506983    IN    NS    e.root-servers.net.
.            506983    IN    NS    c.root-servers.net.
;; Received 512 bytes from 61.10.0.130#53(61.10.0.130) in 36 ms

com.            172800    IN    NS    i.gtld-servers.net.
com.            172800    IN    NS    b.gtld-servers.net.
com.            172800    IN    NS    d.gtld-servers.net.
com.            172800    IN    NS    f.gtld-servers.net.
com.            172800    IN    NS    e.gtld-servers.net.
com.            172800    IN    NS    g.gtld-servers.net.
com.            172800    IN    NS    c.gtld-servers.net.
com.            172800    IN    NS    j.gtld-servers.net.
com.            172800    IN    NS    m.gtld-servers.net.
com.            172800    IN    NS    a.gtld-servers.net.
com.            172800    IN    NS    k.gtld-servers.net.
com.            172800    IN    NS    h.gtld-servers.net.
com.            172800    IN    NS    l.gtld-servers.net.
;; Received 492 bytes from 128.8.10.90#53(d.root-servers.net) in 469 ms

taovps.com.        172800    IN    NS    bob.ns.cloudflare.com.
taovps.com.        172800    IN    NS    gina.ns.cloudflare.com.
;; Received 171 bytes from 192.43.172.30#53(i.gtld-servers.net) in 354 ms

taovps.net.        300    IN    A    106.187.49.151
;; Received 48 bytes from 173.245.59.104#53(bob.ns.cloudflare.com) in 277 ms
如果在哪个环节不对,立即可以看到效果。如果你使用了GoDaddy的服务器,可能会因为防火墙的原因,不能得到正确的结果,你就要更换域名的DNS服务器了。

Comments Closed