MoinQ:

DNS/KnotResolver/behavior/246.jpについて、ここに記述してください。

$ dig -t ns 246.jp

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

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: f0e4e62373d769b87530a719590729faf18273ac091d306b (good)
;; QUESTION SECTION:
;246.jp.                                IN      NS

;; ANSWER SECTION:
246.jp.                 86400   IN      NS      dns.asuka.jp.
246.jp.                 86400   IN      NS      sns.asuka.jp.

;; Query time: 33 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Mon May 01 21:28:43 JST 2017
;; MSG SIZE  rcvd: 105

@4000000059072a043a5ad9b4 [    0][plan] plan '246.jp.' type 'NS'
@4000000059072a043a5b432c [ 4782][iter]   '246.jp.' type 'NS' id was assigned, parent id 0
@4000000059072a043a5be73c [ 4782][resl]   NT check; 246jp cut jp
@4000000059072a043a5be73c [ 4782][resl]   kr peekpkt 246jp ret -2
@4000000059072a043a5beb24 [ 8731][iter]   '246.jp.' type 'NS' id was assigned, parent id 0
@4000000059072a043a5c0294 [ 8731][resl]   => querying: '203.119.40.1' score: 12 zone cut: 'jp.' m12n: '246.jp.' type: 'NS' proto: 'udp'


g.dns.jp(JP zone cut server)に246.jp NSを問い合わせる。(こんな返事のはず)

98 bytes, 1+0+2+2 records, response, noerror
query: 2 246.jp
authority: 246.jp 86400 NS dns.asuka.jp
authority: 246.jp 86400 NS sns.asuka.jp
additional: dns.asuka.jp 86400 A 202.218.109.2
additional: sns.asuka.jp 86400 A 202.218.234.130

ここのadditionalは受け入れない。


@4000000059072a043ad5552c [ 8731][iter]   <= update zone cut name 
@4000000059072a043ad55914 [ 8731][iter]   <= update zone cut name 
@4000000059072a043ad55914 [ 8731][iter]   <= referral response, follow
@4000000059072a043ad5e1cc [ 8731][resl]   <= server: '203.119.40.1' rtt: 7 ms
@4000000059072a043ad5fd24 [62809][iter]   '246.jp.' type 'NS' id was assigned, parent id 0

@4000000059072a043ad610ac [62809][plan]   plan 'sns.asuka.jp.' type 'A'
@4000000059072a043ad61494 [38741][iter]     'sns.asuka.jp.' type 'A' id was assigned, parent id 62809
@4000000059072a043ad67254 [38741][resl]     NT check; snsasukajp cut jp
@4000000059072a043ad68dac [38741][resl]     kr peekpkt snsasukajp ret -2
@4000000059072a043ad68dac [38741][resl]     kr peekpkt asukajp ret -2
@4000000059072a043ad69194 [21422][iter]     'sns.asuka.jp.' type 'A' id was assigned, parent id 62809
@4000000059072a043ad6d3fc [21422][resl]     => querying: '203.119.40.1' score: 11 zone cut: 'jp.' m12n: 'aSukA.Jp.' type: 'NS' proto: 'udp'


$ dnsq ns asuka.jp g.dns.jp

2 asuka.jp:
94 bytes, 1+0+2+2 records, response, noerror
query: 2 asuka.jp
authority: asuka.jp 86400 NS dns.asuka.jp
authority: asuka.jp 86400 NS sns.asuka.jp
additional: dns.asuka.jp 86400 A 202.218.109.2
additional: sns.asuka.jp 86400 A 202.218.234.130


@4000000059072a043b6f7634 [21422][iter]     <= update zone cut name 
@4000000059072a043b6f7a1c [21422][iter]     <= using glue for 'dns.asuka.jp.': '202.218.109.2'
@4000000059072a043b6f7e04 [21422][iter]     <= update zone cut name 
@4000000059072a043b6f7e04 [21422][iter]     <= using glue for 'sns.asuka.jp.': '202.218.234.130'
@4000000059072a043b6f7e04 [21422][iter]     <= referral response, follow
@4000000059072a043b70ca0c [21422][resl]     <= server: '203.119.40.1' rtt: 10 ms
@4000000059072a043b70cdf4 [  545][iter]     'sns.asuka.jp.' type 'A' id was assigned, parent id 62809
@4000000059072a043b70d1dc [  545][resl]     => querying: '202.218.234.130' score: 10 zone cut: 'asuka.jp.' m12n: 'sNs.aSUka.Jp.' type: 'A' proto: 'udp'
@4000000059072a0500b626dc [  545][iter]     <= rcode: NOERROR
@4000000059072a0500b62ac4 [62809][iter]   <= using glue for 'sns.asuka.jp.': '202.218.234.130'
@4000000059072a0500b70d54 [  545][resl]     <= server: '202.218.234.130' rtt: 14 ms
@4000000059072a0500b7113c [29542][iter]   '246.jp.' type 'NS' id was assigned, parent id 0
@4000000059072a0500b71524 [29542][ rc ]   => satisfied from rrcache
@4000000059072a0500b71524 [29542][iter]   <= rcode: NOERROR
@4000000059072a0500b7bd1c [    0][resl] finished: 4, queries: 2, mempool: 32800 B