DNS/返答/NoData/返答例について、ここに記述してください。
Answer Sectionは空。
Authority SectionにSOAレコードがあれば、
- 他にNSなどがあってもよい。
Authority SectionにSOAレコードがなければ、
- NSレコードはあってはならない。
SOAレコードがないと、否定返答はキャッシュに保持しない。
1. 返答例
%dig -t a notexist.qmail.jp @a.ns.qmail.jp ~/dnsq/1210 ; <<>> DiG 9.12.1 <<>> -t a notexist.qmail.jp @a.ns.qmail.jp ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9680 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;notexist.qmail.jp. IN A ;; AUTHORITY SECTION: qmail.jp. 900 IN SOA a.ns.qmail.jp. hostmaster.m.qmail.jp. 1544367874 16384 2048 1048576 900 qmail.jp. 259200 IN NS b.ns.qmail.jp. ;; ADDITIONAL SECTION: b.ns.qmail.jp. 172800 IN A 14.192.44.5 ;; Query time: 0 msec ;; SERVER: 14.192.44.5#53(14.192.44.5) ;; WHEN: Fri Dec 14 08:26:32 JST 2018 ;; MSG SIZE rcvd: 121
2. 返答例 2
%dig -t a konnanamae.jp @a.dns.jp ~/dnsq/1210 ; <<>> DiG 9.12.1 <<>> -t a konnanamae.jp @a.dns.jp ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28257 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ; COOKIE: 352c726e9d4f7f24ecaf8a5f5c12eb21549e2c44df2bc206 (good) ;; QUESTION SECTION: ;konnanamae.jp. IN A ;; AUTHORITY SECTION: jp. 900 IN SOA z.dns.jp. root.dns.jp. 1544742901 3600 900 1814400 900 ;; Query time: 6 msec ;; SERVER: 203.119.1.1#53(203.119.1.1) ;; WHEN: Fri Dec 14 08:28:33 JST 2018 ;; MSG SIZE rcvd: 117
3. 返答例 3
%dig +nocookie -t ns konnanamae.003.jp @ns1.xserver.jp ~/dnsq/1210 ; <<>> DiG 9.12.1 <<>> +nocookie -t ns konnanamae.003.jp @ns1.xserver.jp ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32429 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;konnanamae.003.jp. IN NS ;; Query time: 8 msec ;; SERVER: 219.94.200.164#53(219.94.200.164) ;; WHEN: Fri Dec 14 08:33:52 JST 2018 ;; MSG SIZE rcvd: 35
4. 奇妙な返答の例
権威サーバーとして登録されているはずなのに:
%dig -t DNSKEY 568.co.jp @penguin.kddnet.ad.jp ~/dnsq/1210 ; <<>> DiG 9.12.1 <<>> -t DNSKEY 568.co.jp @penguin.kddnet.ad.jp ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57755 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1400 ;; QUESTION SECTION: ;568.co.jp. IN DNSKEY ;; Query time: 10 msec ;; SERVER: 210.132.91.129#53(210.132.91.129) ;; WHEN: Thu Dec 13 11:19:38 JST 2018 ;; MSG SIZE rcvd: 38
%dig -t DNSKEY beer.co.jp @ns1.emissary.co.jp. ~/dnsq/1210 ; <<>> DiG 9.12.1 <<>> -t DNSKEY beer.co.jp @ns1.emissary.co.jp. ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5151 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1680 ;; QUESTION SECTION: ;beer.co.jp. IN DNSKEY ;; Query time: 9 msec ;; SERVER: 39.110.247.145#53(39.110.247.145) ;; WHEN: Thu Dec 13 11:30:59 JST 2018 ;; MSG SIZE rcvd: 39
%dig -t DNSKEY beer.co.jp @ns3.emissary.co.jp. ~/dnsq/1210 ; <<>> DiG 9.12.1 <<>> -t DNSKEY beer.co.jp @ns3.emissary.co.jp. ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 18625 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1680 ;; QUESTION SECTION: ;beer.co.jp. IN DNSKEY ;; Query time: 11 msec ;; SERVER: 54.95.51.99#53(54.95.51.99) ;; WHEN: Thu Dec 13 11:30:46 JST 2018 ;; MSG SIZE rcvd: 39