MoinQ:

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

another log /2


$ more config

modules = { 'policy', 'cachectl' }
cache.size = 10*MB
net = { '127.0.0.3' }
net.ipv6 = false


$ sudo kresd -v
[system] interactive mode
> [plan] plan 'www.qmail.jp.' type 'A'
[resl]   => root priming query
[plan]   plan '.' type 'NS'
[resl]     => querying: '192.228.79.201' 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: 'Www.qMAIL.jP.' type: 'A'
[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
[plan] plan 'a.ns.qmail.jp.' type 'A'
[ rc ]   => satisfied from cache
[iter]   <= rcode: NOERROR
[resl] finished: 4, queries: 1, mempool: 32784 B


$ dig -t a www.qmail.jp @127.0.0.3

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

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

;; ANSWER SECTION:
www.qmail.jp.           86400   IN      A       14.192.44.5

;; Query time: 511 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Fri Oct 09 09:27:34 JST 2015
;; MSG SIZE  rcvd: 57

$ 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: 36606
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

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

;; ANSWER SECTION:
qmail.jp.               86365   IN      NS      a.ns.qmail.jp.

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

$ dig -t a a.ns.qmail.jp @127.0.0.3

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

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

;; ANSWER SECTION:
a.ns.qmail.jp.          86355   IN      A       14.192.44.5

;; Query time: 0 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Fri Oct 09 09:28:19 JST 2015
;; MSG SIZE  rcvd: 58