看下面查询过程, .com 查 taobao 的时候返回的 ns 记录带 ip 的
$ dig
; <<>> DiG 9.8.3-P1 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38539
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 98233 IN NS
e.root-servers.net.
. 98233 IN NS
j.root-servers.net.
. 98233 IN NS
k.root-servers.net.
. 98233 IN NS
h.root-servers.net.
. 98233 IN NS
g.root-servers.net.
. 98233 IN NS
d.root-servers.net.
. 98233 IN NS
a.root-servers.net.
. 98233 IN NS
c.root-servers.net.
. 98233 IN NS
b.root-servers.net.
. 98233 IN NS
f.root-servers.net.
. 98233 IN NS
i.root-servers.net.
. 98233 IN NS
l.root-servers.net.
. 98233 IN NS
m.root-servers.net.
;; Query time: 43 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Thu Sep 7 11:34:19 2017
;; MSG SIZE rcvd: 228
$ dig @
e.root
-servers.net com.
; <<>> DiG 9.8.3-P1 <<>> @
e.root
-servers.net com.
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63619
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 15
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;com. IN A
;; AUTHORITY SECTION:
com. 172800 IN NS
a.gtld-servers.net.
com. 172800 IN NS
b.gtld-servers.net.
com. 172800 IN NS
c.gtld-servers.net.
com. 172800 IN NS
d.gtld-servers.net.
com. 172800 IN NS
e.gtld-servers.net.
com. 172800 IN NS
f.gtld-servers.net.
com. 172800 IN NS
g.gtld-servers.net.
com. 172800 IN NS
h.gtld-servers.net.
com. 172800 IN NS
i.gtld-servers.net.
com. 172800 IN NS
j.gtld-servers.net.
com. 172800 IN NS
k.gtld-servers.net.
com. 172800 IN NS
l.gtld-servers.net.
com. 172800 IN NS
m.gtld-servers.net.
;; ADDITIONAL SECTION:
a.gtld-servers.net. 172800 IN A 192.5.6.30
b.gtld-servers.net. 172800 IN A 192.33.14.30
c.gtld-servers.net. 172800 IN A 192.26.92.30
d.gtld-servers.net. 172800 IN A 192.31.80.30
e.gtld-servers.net. 172800 IN A 192.12.94.30
f.gtld-servers.net. 172800 IN A 192.35.51.30
g.gtld-servers.net. 172800 IN A 192.42.93.30
h.gtld-servers.net. 172800 IN A 192.54.112.30
i.gtld-servers.net. 172800 IN A 192.43.172.30
j.gtld-servers.net. 172800 IN A 192.48.79.30
k.gtld-servers.net. 172800 IN A 192.52.178.30
l.gtld-servers.net. 172800 IN A 192.41.162.30
m.gtld-servers.net. 172800 IN A 192.55.83.30
a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30
b.gtld-servers.net. 172800 IN AAAA 2001:503:231d::2:30
;; Query time: 179 msec
;; SERVER: 192.203.230.10#53(192.203.230.10)
;; WHEN: Thu Sep 7 11:34:38 2017
;; MSG SIZE rcvd: 509
$ dig @
a.gtld
-servers.net. -t NS
taobao.com; <<>> DiG 9.8.3-P1 <<>> @
a.gtld
-servers.net. -t NS
taobao.com; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30893
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 4, ADDITIONAL: 8
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;
taobao.com. IN NS
;; AUTHORITY SECTION:
taobao.com. 172800 IN NS
ns4.taobao.com.
taobao.com. 172800 IN NS
ns5.taobao.com.
taobao.com. 172800 IN NS
ns6.taobao.com.
taobao.com. 172800 IN NS
ns7.taobao.com.
;; ADDITIONAL SECTION:
ns4.taobao.com. 172800 IN A 198.11.138.245
ns4.taobao.com. 172800 IN A 198.11.138.249
ns5.taobao.com. 172800 IN A 140.205.2.180
ns5.taobao.com. 172800 IN A 140.205.2.188
ns6.taobao.com. 172800 IN A 140.205.71.245
ns6.taobao.com. 172800 IN A 140.205.71.249
ns7.taobao.com. 172800 IN A 106.11.35.25
ns7.taobao.com. 172800 IN A 106.11.35.26
;; Query time: 106 msec
;; SERVER: 192.5.6.30#53(192.5.6.30)
;; WHEN: Thu Sep 7 11:35:01 2017
;; MSG SIZE rcvd: 228