MoinQ:

DNS/qname-minimisation/検索例2について、ここに記述してください。

$ dig www.ana.co.qmail.jp

; <<>> DiG 9.11.1 <<>> www.ana.co.qmail.jp
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28022
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: fc30730f38fbfff3b76bbab2594db52de22b4c1690279e0e (good)
;; QUESTION SECTION:
;www.ana.co.qmail.jp.           IN      A

;; ANSWER SECTION:
www.ana.co.qmail.jp.    120     IN      A       14.192.44.5

;; Query time: 40 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Sat Jun 24 09:41:17 JST 2017
;; MSG SIZE  rcvd: 92

tmaeno@tm:~$ dig -t ns ana.co.qmail.jp

; <<>> DiG 9.11.1 <<>> -t ns ana.co.qmail.jp
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57936
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 065d82fb96fd4629673b48e6594db56fb83fe21f85e7e09d (good)
;; QUESTION SECTION:
;ana.co.qmail.jp.               IN      NS

;; ANSWER SECTION:
ana.co.qmail.jp.        300     IN      NS      a.ns.ana.co.qmail.jp.

;; Query time: 27 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Sat Jun 24 09:42:23 JST 2017
;; MSG SIZE  rcvd: 91

@40000000594db53733dce0dc [    0][plan] plan 'www.ana.co.qmail.jp.' type 'A'
@40000000594db53733dd8104 [30859][iter]   'www.ana.co.qmail.jp.' type 'A' id was assigned, parent id 0
@40000000594db53733de7eec [30859][resl]   kr peekpkt ana.co.qmail.jp. ret -2
@40000000594db53733de82d4 [30859][resl]   kr peekpkt co.qmail.jp. ret -116
@40000000594db53733de82d4 [ 8798][iter]   'www.ana.co.qmail.jp.' type 'A' id was assigned, parent id 0
@40000000594db53733dee864 [ 8798][resl]   => querying: '14.192.44.5' score: 10 zone cut: 'qmail.jp.' m12n: 'co.qmail.jp.' type: 'NS' proto: 'udp'
@40000000594db537349b3f3c [ 8798][iter]   <= rcode: NXDOMAIN
@40000000594db537349b4324 [ 8798][iter]   <= found cut, retrying with non-minimized name
@40000000594db537349b470c [ 8798][ pc ]   => candidate rank: 020
@40000000594db537349bc40c [ 8798][ pc ]   => answer cached for TTL=900
@40000000594db537349be34c [ 8798][resl]   <= server: '14.192.44.5' rtt: 12 ms
@40000000594db537349bf6d4 [22416][iter]   'www.ana.co.qmail.jp.' type 'A' id was assigned, parent id 0
@40000000594db537355f1024 [22416][resl]   => querying: '14.192.44.5' score: 12 zone cut: 'qmail.jp.' m12n: 'Www.ANa.cO.qMAIL.JP.' type: 'A' proto: 'tcp'
@40000000594db537363a9f2c [22416][iter]   <= rcode: NOERROR
@40000000594db537363af904 [22416][ rc ]   => stashing rank: 020, A www.ana.co.qmail.jp.
@40000000594db537363c0a74 [    0][resl] finished: 4, queries: 1, mempool: 16400 B


@40000000594db5791333ac1c [    0][plan] plan 'ana.co.qmail.jp.' type 'NS'
@40000000594db57913341594 [50012][iter]   'ana.co.qmail.jp.' type 'NS' id was assigned, parent id 0
@40000000594db5791334b5bc [50012][resl]   kr peekpkt ana.co.qmail.jp. ret -2
@40000000594db5791334b9a4 [50012][resl]   kr peekpkt co.qmail.jp. ret 0
@40000000594db5791334b9a4 [12426][iter]   'ana.co.qmail.jp.' type 'NS' id was assigned, parent id 0
@40000000594db57913359464 [12426][resl]   <= server: '14.192.44.5' rtt: 0 ms
@40000000594db5791335abd4 [47547][iter]   'ana.co.qmail.jp.' type 'NS' id was assigned, parent id 0
@40000000594db57913f536fc [47547][resl]   => querying: '14.192.44.5' score: 12 zone cut: 'qmail.jp.' m12n: 'ANa.Co.qMaiL.jP.' type: 'NS' proto: 'tcp'
@40000000594db57914cf3794 [47547][iter]   <= rcode: NOERROR
@40000000594db57914cf3b7c [47547][ rc ]   => stashing rank: 020, NS ana.co.qmail.jp.
@40000000594db57914d05c8c [    0][resl] finished: 4, queries: 1, mempool: 16400 B

== 同居を示す返答 =

$ dig xxx.www.ana.co.qmail.jp

; <<>> DiG 9.11.1 <<>> xxx.www.ana.co.qmail.jp
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 39834
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: aa978690a8bb6e535c5baa21594db6b54f6af09660f4fc85 (good)
;; QUESTION SECTION:
;xxx.www.ana.co.qmail.jp.       IN      A

;; AUTHORITY SECTION:
ana.co.qmail.jp.        2560    IN      SOA     a.ns.ana.co.qmail.jp. hostmaster.ana.co.qmail.jp. 1498262657 16384 2048 1048576 2560

;; Query time: 30 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Sat Jun 24 09:47:49 JST 2017
;; MSG SIZE  rcvd: 132