DNS/KnotResolver/cookies/example-2について、ここに記述してください。

$ sudo kresd -v --addr=127.0.0.3#53

[sudo] password for tmaeno: 
[system] interactive mode
> [    0][plan] plan 'b4.bitmap.co.jp.' type 'A'
[19481][iter]   'b4.bitmap.co.jp.' type 'A' id was assigned, parent id 0
[26974][iter]   'b4.bitmap.co.jp.' type 'A' id was assigned, parent id 0
[26974][resl]   => querying: '65.22.40.25' score: 10 zone cut: 'jp.' m12n: 'cO.jp.' type: 'NS' proto: 'udp'
[26974][iter]   <= rcode: NOERROR
[26974][iter]   <= found cut, retrying with non-minimized name
[26974][ pc ]   => answer cached for TTL=900
[26974][resl]   <= server: '65.22.40.25' rtt: 139814070386857 ms
[38976][iter]   'b4.bitmap.co.jp.' type 'A' id was assigned, parent id 0
[38976][resl]   => querying: '203.119.40.1' score: 10 zone cut: 'jp.' m12n: 'b4.BITMaP.CO.jp.' type: 'A' proto: 'udp'
[38976][iter]   <= using glue for 'b4.bitmap.co.jp.': '221.240.210.247'
[38976][iter]   <= referral response, follow
[38976][resl]   <= server: '203.119.40.1' rtt: 139814070386695 ms
[ 7176][iter]   'b4.bitmap.co.jp.' type 'A' id was assigned, parent id 0
[ 7176][resl]   => querying: '221.240.210.247' score: 10 zone cut: 'bitmap.co.jp.' m12n: 'B4.bITmAP.co.Jp.' type: 'A' proto: 'udp'
[    0][cookies] got malformed DNS cookie or server cookie missing
[ 7176][iter]   <= rcode: FORMERR
[65000][iter]   'b4.bitmap.co.jp.' type 'A' id was assigned, parent id 0
[65000][resl]   => querying: '221.240.210.247' score: 10 zone cut: 'bitmap.co.jp.' m12n: 'b4.bitmap.co.jp.' type: 'A' proto: 'udp'
[65000][iter]   <= rcode: NOERROR
[    0][resl] finished: 4, queries: 1, mempool: 16400 B

cookieなしで問い合わせなおしているが、運用のポリシー次第だろう。

$ dig b4.bitmap.co.jp @127.0.0.3

; <<>> DiG 9.11.0-P3 <<>> b4.bitmap.co.jp @127.0.0.3
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31139
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 529b3f1650260c4c06f3b0fb58eee6f928e35d2738ec0d00 (good)
;; QUESTION SECTION:
;b4.bitmap.co.jp.               IN      A

;; ANSWER SECTION:
b4.bitmap.co.jp.        3600    IN      A       221.240.210.247

;; Query time: 193 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Thu Apr 13 11:48:25 JST 2017
;; MSG SIZE  rcvd: 88

この返答にあるcookieはkresdが生成したものらしい。

1. +qr

$ dig +qr b4.bitmap.co.jp @127.0.0.3

; <<>> DiG 9.11.0-P3 <<>> +qr b4.bitmap.co.jp @127.0.0.3
;; global options: +cmd
;; Sending:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41711
;; flags: rd ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 2ce5cc4c1baafaf9
;; QUESTION SECTION:
;b4.bitmap.co.jp.               IN      A

;; QUERY SIZE: 56

;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41711
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 2ce5cc4c1baafaf918f8637b58eee7a41b8cd15ad0ed6561 (good)
;; QUESTION SECTION:
;b4.bitmap.co.jp.               IN      A

;; ANSWER SECTION:
b4.bitmap.co.jp.        3429    IN      A       221.240.210.247

;; Query time: 0 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Thu Apr 13 11:51:16 JST 2017
;; MSG SIZE  rcvd: 88