介绍dns的原理的资料很多,不过很多都比较难懂,而且无法看到实际的效果,希望看完能帮助你理解。
现在已经有dig的windos版本
http://www.chinaunix.net/jh/16/310139.html
从根服务器开始追踪一个域名的解析过程 dig winmag.com.cn +trace
[root@ns01 /]# dig winmag.com.cn +trace
; <<>> DiG 9.2.4 <<>> winmag.com.cn +trace
;; global options: printcmd
. 511849 IN NS b.root-servers.net.
. 511849 IN NS c.root-servers.net.
. 511849 IN NS d.root-servers.net.
. 511849 IN NS e.root-servers.net.
. 511849 IN NS f.root-servers.net.
. 511849 IN NS g.root-servers.net.
. 511849 IN NS h.root-servers.net.
. 511849 IN NS i.root-servers.net.
. 511849 IN NS j.root-servers.net.
. 511849 IN NS k.root-servers.net.
. 511849 IN NS l.root-servers.net.
. 511849 IN NS m.root-servers.net.
. 511849 IN NS a.root-servers.net.
;; Received 420 bytes from 192.168.0.10#53(192.168.0.10) in 9 ms
cn. 172800 IN NS NS.CNC.AC.cn.
cn. 172800 IN NS DNS2.CNNIC.NET.cn.
cn. 172800 IN NS NS.CERNET.NET.
cn. 172800 IN NS DNS3.CNNIC.NET.cn.
cn. 172800 IN NS DNS4.CNNIC.NET.cn.
cn. 172800 IN NS DNS5.CNNIC.NET.cn.
;; Received 320 bytes from 192.228.79.201#53(b.root-servers.net) in 225 ms
com.cn. 172800 IN NS sld-ns2.cnnic.net.cn.
com.cn. 172800 IN NS sld-ns3.cnnic.net.cn.
com.cn. 172800 IN NS sld-ns4.cnnic.net.cn.
com.cn. 172800 IN NS sld-ns5.cnnic.net.cn.
com.cn. 172800 IN NS cns.cernet.net.
com.cn. 172800 IN NS sld-ns1.cnnic.net.cn.
;; Received 275 bytes from 159.226.1.1#53(NS.CNC.AC.cn) in 16 ms
winmag.com.cn. 43200 IN NS ns1.xconnected.com.
winmag.com.cn. 43200 IN NS ns2.xconnected.com.
;; Received 81 bytes from 202.97.16.197#53(sld-ns2.cnnic.net.cn) in 123 ms
winmag.com.cn. 3600 IN A 61.152.144.156
;; Received 47 bytes from 61.152.251.26#53(ns1.xconnected.com) in 81 ms
再看一个例子
[root@ns01 /]# dig chinaunix.net +trace
; <<>> DiG 9.2.4 <<>> chinaunix.net +trace
;; global options: printcmd
. 511322 IN NS b.root-servers.net.
. 511322 IN NS &n