kresd/example/つづきについて、ここに記述してください。

続いて、100.co.jp Aを問い合わせてみたら:

[plan] plan '100.co.jp.' type 'A'
kr_zonecut_find_cached 100cojp
kr_zonecut_find_cached cojp
kr_zonecut_find_cached jp
[resl]   ns_fetch_cut ret 0
[resl]   NT check; 100cojp cut jp
[resl]   peek 100cojp ret -2
[resl]   peek cojp ret -116
[resl]   zone_cut_check -> ns_fetch_cut = 0
[plan]   plan 'g.dns.jp.' type 'A'
kr_zonecut_find_cached 
[resl]     ns_fetch_cut ret -2
[resl]     zone_cut_check -> ns_fetch_cut = -2
[resl]     => using root hints

なぜかJP NSが登録されていない。??? (1回目だけなにかしてたのかも)

[resl]     
=> querying: '202.12.27.33' score: 10 zone cut: '.' m12n: 'Jp.' type: 'NS'
[resl]     
   optional: '193.0.14.129' score: 10 zone cut: '.' m12n: 'Jp.' type: 'NS'
[resl]     
   optional: '192.58.128.30' score: 10 zone cut: '.' m12n: 'Jp.' type: 'NS'
[resl]     
   optional: '192.36.148.17' score: 10 zone cut: '.' m12n: 'Jp.' type: 'NS'
[iter]     Update zone cut 
[iter]     zonecut_add jp NS gdnsjp
[iter]     <= using glue for 'g.dns.jp.'
[iter]     Update zone cut jp
[iter]     zonecut_add jp NS adnsjp
[iter]     <= using glue for 'a.dns.jp.'
[iter]     Update zone cut jp
[iter]     zonecut_add jp NS ddnsjp
[iter]     <= using glue for 'd.dns.jp.'
[iter]     Update zone cut jp
[iter]     zonecut_add jp NS fdnsjp
[iter]     <= using glue for 'f.dns.jp.'
[iter]     Update zone cut jp
[iter]     zonecut_add jp NS ednsjp
[iter]     <= using glue for 'e.dns.jp.'
[iter]     Update zone cut jp
[iter]     zonecut_add jp NS bdnsjp
[iter]     <= using glue for 'b.dns.jp.'
[iter]     Update zone cut jp
[iter]     zonecut_add jp NS cdnsjp
[iter]     <= using glue for 'c.dns.jp.'
[iter]     <= referral response, follow
[ rc ]     stash referral NS
[ rc ]     stash auth for jp
[ rc ]     stash auth for jp
[ rc ]     stash auth for jp
[ rc ]     stash auth for jp
[ rc ]     stash auth for jp
[ rc ]     stash auth for jp
[ rc ]     stash auth for jp
[ pc ]     => pktcache_stash entry
[resl]     <= server: '202.12.27.33' rtt: 6 ms

そしてなぜか*.dns.jp Aを確認する動作をしている。

[resl]     
=> querying: '192.50.43.53' score: 10 zone cut: 'jp.' m12n: 'dNs.jp.' type: 'NS'
[resl]     
   optional: '210.138.175.244' score: 10 zone cut: 'jp.' m12n: 'dNs.jp.' type: 'NS'
[resl]     
   optional: '156.154.100.5' score: 10 zone cut: 'jp.' m12n: 'dNs.jp.' type: 'NS'
[resl]     
   optional: '202.12.30.131' score: 10 zone cut: 'jp.' m12n: 'dNs.jp.' type: 'NS'
[iter]     Update zone cut jp
[iter]     zonecut_add dnsjp NS nsbdnsjp
[iter]     <= using glue for 'nsb.dns.jp.'
[iter]     Update zone cut dnsjp
[iter]     zonecut_add dnsjp NS nsednsjp
[iter]     <= using glue for 'nse.dns.jp.'
[iter]     Update zone cut dnsjp
[iter]     zonecut_add dnsjp NS nsddnsjp
[iter]     <= using glue for 'nsd.dns.jp.'
[iter]     Update zone cut dnsjp
[iter]     zonecut_add dnsjp NS nsgdnsjp
[iter]     <= using glue for 'nsg.dns.jp.'
[iter]     Update zone cut dnsjp
[iter]     zonecut_add dnsjp NS nsfdnsjp
[iter]     <= using glue for 'nsf.dns.jp.'
[iter]     Update zone cut dnsjp
[iter]     zonecut_add dnsjp NS nsadnsjp
[iter]     <= using glue for 'nsa.dns.jp.'
[iter]     <= referral response, follow
[ rc ]     stash referral NS
[ rc ]     stash auth for dnsjp
[ rc ]     stash auth for dnsjp
[ rc ]     stash auth for dnsjp
[ rc ]     stash auth for dnsjp
[ rc ]     stash auth for dnsjp
[ rc ]     stash auth for dnsjp
[ pc ]     => pktcache_stash entry
[resl]     <= server: '192.50.43.53' rtt: 17 ms
[resl]     
=> querying: '203.119.40.4' score: 10 zone cut: 'dns.jp.' m12n: 'g.DNS.jp.' type: 'A'
[resl]     
   optional: '150.100.6.12' score: 10 zone cut: 'dns.jp.' m12n: 'g.DNS.jp.' type: 'A'
[resl]     
   optional: '192.50.43.153' score: 10 zone cut: 'dns.jp.' m12n: 'g.DNS.jp.' type: 'A'
[resl]     
   optional: '210.138.175.245' score: 10 zone cut: 'dns.jp.' m12n: 'g.DNS.jp.' type: 'A'
[iter]     AA terminate resolution chain
[iter]     <= rcode: NOERROR
[ rc ]     stash auth answer 
[ pc ]     => pktcache_stash entry
[resl]     <= server: '203.119.40.4' rtt: 5 ms

そしてまたもco.jp NSを問い合わせている。(ここも要調査)

[resl]   
=> querying: '203.119.40.1' score: 15 zone cut: 'jp.' m12n: 'co.JP.' type: 'NS'
[iter]   AA terminate resolution chain
[iter]   <= rcode: NOERROR
[iter]   <= found cut, retrying with non-minimized name
[ rc ]   stash auth answer 
[ pc ]   => pktcache_stash entry
[ pc ]   => pktcache_stash NXDOMAIN
[ pc ]   => pktcache_stash answer
[ pc ]   => answer cached for TTL=900
[resl]   <= server: '203.119.40.1' rtt: 5 ms

これで100.co.jp Aを問い合わせられる。

[resl]   
=> querying: '203.119.40.1' score: 13 zone cut: 'jp.' m12n: '100.Co.jP.' type: 'A'
[iter]   Update zone cut jp
[iter]   zonecut_add 100cojp NS www
                                       media-systemcojp
[iter]   Update zone cut 100cojp
[iter]   zonecut_add 100cojp NS nsend-faxjp
[iter]   <= referral response, follow
[ rc ]   stash referral NS
[ rc ]   stash auth for 100cojp
[ rc ]   stash auth for 100cojp
[ pc ]   => pktcache_stash entry
[resl]   <= server: '203.119.40.1' rtt: 5 ms
[plan]   plan 'www.media-system.co.jp.' type 'A'
kr_zonecut_find_cached www
                           media-systemcojp
kr_zonecut_find_cached 
                       media-systemcojp
kr_zonecut_find_cached cojp
kr_zonecut_find_cached jp
[resl]     ns_fetch_cut ret 0
[resl]     NT check; www
                         media-systemcojp cut jp
[resl]     peek 
                media-systemcojp ret -2
[resl]     peek cojp ret 0
[resl]     zone_cut_check -> ns_fetch_cut = 0
[resl]     
=> querying: '203.119.40.1' score: 12 zone cut: 'jp.' m12n: 'WWW.medIa-SyStEM.Co.JP.' type: 'A'
[iter]     Update zone cut jp
[iter]     zonecut_add 
                       media-systemcojp NS nsend-faxjp
[iter]     Update zone cut 
                           media-systemcojp
[iter]     zonecut_add 
                       media-systemcojp NS www
                                                 media-systemcojp
[iter]     <= using glue for 'www.media-system.co.jp.'
[iter]     <= referral response, follow
[ rc ]     stash referral NS
[ rc ]     stash auth for 
                          media-systemcojp
[ rc ]     stash auth for 
                          media-systemcojp
[ pc ]     => pktcache_stash entry
[resl]     <= server: '203.119.40.1' rtt: 6 ms
[resl]     
=> querying: '58.157.220.242' score: 10 zone cut: 'media-system.co.jp.' m12n: 'wwW.mEdIa-sYstEM.CO.jP.' type: 'A'
[iter]     AA terminate resolution chain
[iter]     <= rcode: NOERROR
[ rc ]     stash auth answer 
[ pc ]     => pktcache_stash entry
[resl]     <= server: '58.157.220.242' rtt: 23 ms
[resl]   
=> querying: '58.157.220.242' score: 23 zone cut: '100.co.jp.' m12n: '100.CO.jP.' type: 'A'
[iter]   AA terminate resolution chain
[iter]   <= rcode: NOERROR
[ rc ]   stash auth answer 
[ pc ]   => pktcache_stash entry
[resl]   <= server: '58.157.220.242' rtt: 22 ms
[resl] finished: 4, queries: 3, mempool: 32800 B