kresd/example/3について、ここに記述してください。 続いて、やってみる。  %dig iij.co.jp {{{ [plan] plan 'iij.co.jp.' type 'A' kr_zonecut_find_cached iijcojp kr_zonecut_find_cached cojp kr_zonecut_find_cached jp [resl] ns_fetch_cut ret 0 [resl] NT check; iijcojp cut jp [resl] peek iijcojp ret -2 [resl] peek cojp ret 0 [resl] zone_cut_check -> ns_fetch_cut = 0 }}} こんどはco.jpにゾーンがないことを利用して、qname miniは飛ばしている。 {{{ [resl] => querying: '203.119.40.1' score: 11 zone cut: 'jp.' m12n: 'iiJ.co.Jp.' type: 'A' [iter] Update zone cut jp [iter] zonecut_add iijcojp NS dns0iijadjp [iter] Update zone cut iijcojp [iter] zonecut_add iijcojp NS dns1iijadjp [iter] <= referral response, follow [ rc ] stash referral NS [ rc ] stash auth for iijcojp [ rc ] stash auth for iijcojp [ pc ] => pktcache_stash entry [resl] <= server: '203.119.40.1' rtt: 6 ms }}} 委譲・委任が返ってきたので、あとは同様だろう。 {{{ [plan] plan 'dns1.iij.ad.jp.' type 'A' kr_zonecut_find_cached dns1iijadjp kr_zonecut_find_cached iijadjp kr_zonecut_find_cached adjp kr_zonecut_find_cached jp [resl] ns_fetch_cut ret 0 [resl] NT check; dns1iijadjp cut jp [resl] peek iijadjp ret -2 [resl] peek adjp ret -2 [resl] zone_cut_check -> ns_fetch_cut = 0 }}} ad.jpを確かめなければならないので、 {{{ [resl] => querying: '203.119.40.1' score: 11 zone cut: 'jp.' m12n: 'ad.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 [resl] => querying: '203.119.40.1' score: 11 zone cut: 'jp.' m12n: 'Dns1.iIJ.ad.Jp.' type: 'A' [iter] Update zone cut jp [iter] zonecut_add iijadjp NS dns1iijadjp [iter] <= using glue for 'dns1.iij.ad.jp.' [iter] Update zone cut iijadjp [iter] zonecut_add iijadjp NS dns0iijadjp [iter] <= using glue for 'dns0.iij.ad.jp.' [iter] <= referral response, follow [ rc ] stash referral NS [ rc ] stash auth for iijadjp [ rc ] stash auth for iijadjp [ pc ] => pktcache_stash entry [resl] <= server: '203.119.40.1' rtt: 6 ms [resl] => querying: '210.130.1.5' score: 10 zone cut: 'iij.ad.jp.' m12n: 'dNs1.Iij.Ad.JP.' type: 'A' [resl] optional: '210.130.0.5' score: 10 zone cut: 'iij.ad.jp.' m12n: 'dNs1.Iij.Ad.JP.' type: 'A' [iter] AA terminate resolution chain [iter] <= rcode: NOERROR [ rc ] stash auth answer [ pc ] => pktcache_stash entry [resl] <= server: '210.130.1.5' rtt: 6 ms [resl] => querying: '210.130.1.5' score: 11 zone cut: 'iij.co.jp.' m12n: 'iij.co.JP.' type: 'A' [iter] AA terminate resolution chain [iter] <= rcode: NOERROR [ rc ] stash auth answer [ pc ] => pktcache_stash entry [ pc ] => pktcache_stash NXDOMAIN [ pc ] => pktcache_stash answer [ pc ] => answer cached for TTL=900 [resl] <= server: '210.130.1.5' rtt: 6 ms [resl] finished: 4, queries: 2, mempool: 32800 B }}}