MoinQ:

1. DNS/実装/KnotDNSresolver/query-log/2

$ sudo kresd -v
[system] interactive mode
> [plan] plan 'qmail.jp.' type 'NS'
[resl]   => root priming query
[plan]   plan '.' type 'NS'
[resl]     => querying: '198.97.190.53' score: 10 zone cut: '.' m12n: '.' type: 'NS'
[iter]     <= rcode: NOERROR
[resl]   => querying: '198.41.0.4' score: 10 zone cut: '.' m12n: 'Jp.' type: 'NS'
[iter]   <= referral response, follow
[resl]   => querying: '203.119.1.1' score: 10 zone cut: 'jp.' m12n: 'QMAIl.Jp.' type: 'NS'
[iter]   <= referral response, follow
[resl]   => querying: '14.192.44.5' score: 10 zone cut: 'qmail.jp.' m12n: 'qMAil.Jp.' type: 'NS'
[iter]   <= rcode: NOERROR
[resl] finished: 4, queries: 2, mempool: 32784 B
[plan] plan 'qmail.jp.' type 'NS'
[ rc ]   => satisfied from cache
[iter]   <= rcode: NOERROR
[resl] finished: 4, queries: 1, mempool: 32784 B


$ dig -t ns qmail.jp @127.0.0.3

; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> -t ns qmail.jp @127.0.0.3
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55151
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;qmail.jp.                      IN      NS

;; ANSWER SECTION:
qmail.jp.               604800  IN      NS      a.ns.qmail.jp.
qmail.jp.               604800  IN      NS      f.ns.qmail.jp.

;; Query time: 640 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Fri Oct 09 09:36:09 JST 2015
;; MSG SIZE  rcvd: 75

$ dig -t ns qmail.jp @127.0.0.3

; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> -t ns qmail.jp @127.0.0.3
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57360
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;qmail.jp.                      IN      NS

;; ANSWER SECTION:
qmail.jp.               604793  IN      NS      a.ns.qmail.jp.
qmail.jp.               604793  IN      NS      f.ns.qmail.jp.

;; Query time: 0 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Fri Oct 09 09:36:16 JST 2015
;; MSG SIZE  rcvd: 72