Domain-Name-System
沒有 NS 記錄的工作域。可能的?
是否可以在沒有 NS 記錄的情況下擁有有效的 A 記錄(工作網站)?
mylinux:~# dig example.com NS ; <<>> DiG 9.3.4-P1.2 <<>> example.com NS ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18501 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;example.com. IN NS ;; AUTHORITY SECTION: example.com. 336 IN SOA NS1.1MORENAME.com. hostmaster.example.com. 5 28800 7200 604800 86400 ;; Query time: 1 msec ;; SERVER: 194.126.115.18#53(194.126.115.18) ;; WHEN: Mon Feb 28 12:17:56 2011 ;; MSG SIZE rcvd: 90 mylinux:~# telnet example.com 80 Trying 50.22.26.210... Connected to example.com. Escape character is '^]'. GET / <tml> <head> <title></title> <meta name="description" content=" information from ekodomains.com. Find the best sites on the web." > <meta name="keywords" content="" > [....]
嘗試
dig +trace example.com A
或dig +trace example.com NS
查看推薦是如何發生的。.com 名稱伺服器必須具有 NS 記錄才能成為 .com 區域的一部分,但它所引用的名稱伺服器可能沒有為該區域配置 NS 記錄。通常 BIND 拒絕載入沒有 NS 記錄的區域,但其他 DNS 軟體可能更寬容。
在搜尋具有相同名稱伺服器的其他域之後,它們的行為似乎並不少見:
; <<>> DiG 9.7.0-P1 <<>> @ns1.1morename.com keyzweb.com ns ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16653 ;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;keyzweb.com. IN NS ;; AUTHORITY SECTION: keyzweb.com. 86400 IN SOA NS1.1MORENAME.com. hostmaster.keyzweb.com. 1 28800 7200 604800 86400 ;; Query time: 123 msec ;; SERVER: 173.236.119.110#53(173.236.119.110) ;; WHEN: Sat Mar 5 11:06:05 2011 ;; MSG SIZE rcvd: 90
這是一個跟踪,顯示委託點的 NS 記錄(在這種情況下,由 .com 名稱伺服器返回的 NS 記錄)不具有權威性。這就是為什麼它們沒有作為答案出現:它們不存在於權威名稱伺服器中。
; <<>> DiG 9.7.0-P1 <<>> +trace keyzweb.com ns ;; global options: +cmd . 22664 IN NS l.root-servers.net. . 22664 IN NS f.root-servers.net. . 22664 IN NS h.root-servers.net. . 22664 IN NS a.root-servers.net. . 22664 IN NS g.root-servers.net. . 22664 IN NS m.root-servers.net. . 22664 IN NS i.root-servers.net. . 22664 IN NS d.root-servers.net. . 22664 IN NS c.root-servers.net. . 22664 IN NS k.root-servers.net. . 22664 IN NS j.root-servers.net. . 22664 IN NS e.root-servers.net. . 22664 IN NS b.root-servers.net. ;; Received 509 bytes from 10.19.12.20#53(10.19.12.20) in 0 ms 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. ;; Received 492 bytes from 193.0.14.129#53(k.root-servers.net) in 22 ms keyzweb.com. 172800 IN NS ns1.1morename.com. keyzweb.com. 172800 IN NS ns2.1morename.com. ;; Received 107 bytes from 192.26.92.30#53(c.gtld-servers.net) in 102 ms keyzweb.com. 86400 IN SOA NS1.1MORENAME.com. hostmaster.keyzweb.com. 1 28800 7200 604800 86400 ;; Received 90 bytes from 173.236.119.110#53(ns2.1morename.com) in 124 ms