- 论坛徽章:
- 0
|
如果LZ了解域名解析过程就不会由此疑问了。
首先一个域名的权威服务器是由该类域名的顶级域服务器决定的。如CN域名的顶级域域服务器有这些:
C:\Documents and Settings\Administrator>dig cn. ns
; <<>> DiG 9.3.3 <<>> cn. ns
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1115
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 8
;; QUESTION SECTION:
;cn. IN NS
;; ANSWER SECTION:
cn. 1609 IN NS ns.cernet.net.
cn. 1609 IN NS c.dns.cn.
cn. 1609 IN NS d.dns.cn.
cn. 1609 IN NS a.dns.cn.
cn. 1609 IN NS e.dns.cn.
cn. 1609 IN NS b.dns.cn.
;; ADDITIONAL SECTION:
ns.cernet.net. 50604 IN A 202.112.0.44
c.dns.cn. 70796 IN A 203.119.27.1
a.dns.cn. 35816 IN A 203.119.25.1
a.dns.cn. 35113 IN AAAA 2001:dc7::1
e.dns.cn. 4773 IN A 203.119.29.1
b.dns.cn. 70796 IN A 203.119.26.1
d.dns.cn. 4577 IN A 203.119.28.1
d.dns.cn. 80594 IN AAAA 2001:dc7:1000::1
;; Query time: 46 msec
;; SERVER: 202.99.166.4#53(202.99.166.4)
;; WHEN: Thu Jul 16 07:24:08 2009
;; MSG SIZE rcvd: 283
这时要查询一个域名的权威服务器,只要到这些顶级域服务器上查询即可:
C:\Documents and Settings\Administrator>dig @a.dns.cn aidns.cn ns
; <<>> DiG 9.3.3 <<>> @a.dns.cn aidns.cn ns
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1940
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 3, ADDITIONAL: 3
;; QUESTION SECTION:
;aidns.cn. IN NS
;; AUTHORITY SECTION:
aidns.cn. 21600 IN NS ns2.aidns.cn.
aidns.cn. 21600 IN NS ns1.aidns.cn.
aidns.cn. 21600 IN NS ns3.aidns.cn.
;; ADDITIONAL SECTION:
ns2.aidns.cn. 21600 IN A 61.55.135.76
ns1.aidns.cn. 21600 IN A 120.72.34.207
ns3.aidns.cn. 21600 IN A 219.148.36.19
;; Query time: 62 msec
;; SERVER: 203.119.25.1#53(203.119.25.1)
;; WHEN: Thu Jul 16 07:25:20 2009
;; MSG SIZE rcvd: 128 |
|