MoinQ:

DNS/実装/KnotDNSresolver/issues/000.co.jpについて、ここに記述してください。

$ dig www.000.co.jp @127.0.0.3

; <<>> DiG 9.11.1 <<>> www.000.co.jp @127.0.0.3
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64372
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 2a1744afa43ba32f6467503b59016c93b53e1b3201badb87 (good)
;; QUESTION SECTION:
;www.000.co.jp.                 IN      A

;; ANSWER SECTION:
www.000.co.jp.          300     IN      A       110.34.58.136

;; Query time: 813 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Thu Apr 27 12:59:16 JST 2017
;; MSG SIZE  rcvd: 86

$ dig -t ns 000.co.jp @127.0.0.3

; <<>> DiG 9.11.1 <<>> -t ns 000.co.jp @127.0.0.3
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38915
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 7d30b9a617023252a410425c59016d38ced23df6a43c74d7 (good)
;; QUESTION SECTION:
;000.co.jp.                     IN      NS

;; ANSWER SECTION:
000.co.jp.              86235   IN      NS      ns1.dnsserver-jp.net.
000.co.jp.              86235   IN      NS      ns2.dnsserver-jp.net.

;; Query time: 0 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Thu Apr 27 13:02:00 JST 2017
;; MSG SIZE  rcvd: 118

1. log

# kresd -v
[system] interactive mode
> [    0][plan] plan 'www.000.co.jp.' type 'A'
[41320][iter]   'www.000.co.jp.' type 'A' id was assigned, parent id 0
[41320][resl]   => using root hints
[57719][iter]   'www.000.co.jp.' type 'A' id was assigned, parent id 0
[57719][resl]   => querying: '202.12.27.33' score: 10 zone cut: '.' m12n: 'jp.' type: 'NS' proto: 'udp'
[57719][iter]   <= using glue for 'd.dns.jp.': '210.138.175.244'
[57719][iter]   <= using glue for 'c.dns.jp.': '156.154.100.5'
[57719][iter]   <= using glue for 'e.dns.jp.': '192.50.43.53'
[57719][iter]   <= using glue for 'h.dns.jp.': '65.22.40.25'
[57719][iter]   <= using glue for 'g.dns.jp.': '203.119.40.1'
[57719][iter]   <= using glue for 'b.dns.jp.': '202.12.30.131'
[57719][iter]   <= using glue for 'f.dns.jp.': '150.100.6.8'
[57719][iter]   <= using glue for 'a.dns.jp.': '203.119.1.1'
[57719][iter]   <= referral response, follow

[57719][resl]   <= server: '202.12.27.33' rtt: 7 ms
[ 1770][iter]   'www.000.co.jp.' type 'A' id was assigned, parent id 0
[ 1770][resl]   => querying: '65.22.40.25' score: 10 zone cut: 'jp.' m12n: 'co.jP.' type: 'NS' proto: 'udp'
[ 1770][iter]   <= rcode: NOERROR
[ 1770][iter]   <= found cut, retrying with non-minimized name
[ 1770][ pc ]   => answer cached for TTL=900
[ 1770][resl]   <= server: '65.22.40.25' rtt: 181 ms
[23961][iter]   'www.000.co.jp.' type 'A' id was assigned, parent id 0
[23961][resl]   => querying: '203.119.40.1' score: 10 zone cut: 'jp.' m12n: 'WWW.000.co.jp.' type: 'A' proto: 'udp'
[23961][iter]   <= referral response, follow

[23961][resl]   <= server: '203.119.40.1' rtt: 7 ms
[28374][iter]   'www.000.co.jp.' type 'A' id was assigned, parent id 0
[28374][plan]   plan 'ns2.dnsserver-jp.net.' type 'A'
[60783][iter]     'ns2.dnsserver-jp.net.' type 'A' id was assigned, parent id 28374
[60783][resl]     => using root hints
[27210][iter]     'ns2.dnsserver-jp.net.' type 'A' id was assigned, parent id 28374
[27210][resl]     => querying: '199.7.83.42' score: 10 zone cut: '.' m12n: 'NeT.' type: 'NS' proto: 'udp'
[27210][iter]     <= using glue for 'a.gtld-servers.net.': '192.5.6.30'
[27210][iter]     <= using glue for 'b.gtld-servers.net.': '192.33.14.30'
[27210][iter]     <= using glue for 'c.gtld-servers.net.': '192.26.92.30'
[27210][iter]     <= using glue for 'd.gtld-servers.net.': '192.31.80.30'
[27210][iter]     <= using glue for 'e.gtld-servers.net.': '192.12.94.30'
[27210][iter]     <= using glue for 'f.gtld-servers.net.': '192.35.51.30'
[27210][iter]     <= using glue for 'g.gtld-servers.net.': '192.42.93.30'
[27210][iter]     <= using glue for 'h.gtld-servers.net.': '192.54.112.30'
[27210][iter]     <= using glue for 'i.gtld-servers.net.': '192.43.172.30'
[27210][iter]     <= using glue for 'j.gtld-servers.net.': '192.48.79.30'
[27210][iter]     <= using glue for 'k.gtld-servers.net.': '192.52.178.30'
[27210][iter]     <= using glue for 'l.gtld-servers.net.': '192.41.162.30'
[27210][iter]     <= using glue for 'm.gtld-servers.net.': '192.55.83.30'
[27210][iter]     <= referral response, follow

[27210][resl]     <= server: '199.7.83.42' rtt: 110 ms
[42765][iter]     'ns2.dnsserver-jp.net.' type 'A' id was assigned, parent id 28374
[42765][resl]     => querying: '192.55.83.30' score: 10 zone cut: 'net.' m12n: 'DNSsERvER-jp.nEt.' type: 'NS' proto: 'udp'
[42765][resl]     => querying: '192.41.162.30' score: 10 zone cut: 'net.' m12n: 'DNSsERvER-jp.nEt.' type: 'NS' proto: 'udp'
[42765][iter]     <= referral response, follow
[42765][resl]     <= server: '192.55.83.30' rtt: 298 ms
[42765][resl]     <= server: '192.41.162.30' rtt: >=48 ms
[10478][iter]     'ns2.dnsserver-jp.net.' type 'A' id was assigned, parent id 28374
[10478][plan]     plan 'ns2.willnet.ne.jp.' type 'A'
[ 1005][iter]       'ns2.willnet.ne.jp.' type 'A' id was assigned, parent id 10478
[45199][iter]       'ns2.willnet.ne.jp.' type 'A' id was assigned, parent id 10478
[45199][resl]       => querying: '65.22.40.25' score: 181 zone cut: 'jp.' m12n: 'Ne.JP.' type: 'NS' proto: 'udp'
[45199][iter]       <= rcode: NOERROR
[45199][iter]       <= found cut, retrying with non-minimized name
[45199][ pc ]       => answer cached for TTL=900
[45199][resl]       <= server: '65.22.40.25' rtt: 177 ms
[51352][iter]       'ns2.willnet.ne.jp.' type 'A' id was assigned, parent id 10478
[51352][resl]       => querying: '150.100.6.8' score: 10 zone cut: 'jp.' m12n: 'Ns2.wiLlNeT.NE.Jp.' type: 'A' proto: 'udp'
[51352][iter]       <= using glue for 'ns2.willnet.ne.jp.': '123.108.2.218'
[51352][iter]       <= using glue for 'ns1.willnet.ne.jp.': '123.108.1.106'
[51352][iter]       <= referral response, follow
[51352][resl]       <= server: '150.100.6.8' rtt: 7 ms
[20691][iter]       'ns2.willnet.ne.jp.' type 'A' id was assigned, parent id 10478
[20691][resl]       => querying: '123.108.2.218' score: 10 zone cut: 'willnet.ne.jp.' m12n: 'ns2.wiLlNEt.nE.Jp.' type: 'A' proto: 'udp'
[20691][iter]       <= rcode: NOERROR
[10478][iter]     <= using glue for 'ns2.willnet.ne.jp.': '123.108.2.218'
[20691][resl]       <= server: '123.108.2.218' rtt: 7 ms
[35752][iter]     'ns2.dnsserver-jp.net.' type 'A' id was assigned, parent id 28374
[35752][resl]     => querying: '123.108.2.218' score: 11 zone cut: 'dnsserver-jp.net.' m12n: 'NS2.DNSSErVeR-jP.nET.' type: 'A' proto: 'udp'
[35752][iter]     <= rcode: NOERROR
[28374][iter]   <= using glue for 'ns2.dnsserver-jp.net.': '123.108.2.218'
[35752][resl]     <= server: '123.108.2.218' rtt: 7 ms

[27440][iter]   'www.000.co.jp.' type 'A' id was assigned, parent id 0
[27440][resl]   => querying: '123.108.2.218' score: 11 zone cut: '000.co.jp.' m12n: 'wwW.000.co.jP.' type: 'A' proto: 'udp'
[27440][iter]   <= rcode: NOERROR
[27440][resl]   <= server: '123.108.2.218' rtt: 7 ms
[    0][resl] finished: 4, queries: 3, mempool: 32800 B

これが解せない

[    0][plan] plan '000.co.jp.' type 'NS'
[55310][iter]   '000.co.jp.' type 'NS' id was assigned, parent id 0
[55310][ rc ]   => satisfied from cache
[55310][iter]   <= rcode: NOERROR
[    0][resl] finished: 4, queries: 1, mempool: 32800 B