我使用 BIND 9.9.4 并看到以下问题。
dig 命令向我们展示了 ADDITIONAL 部分中有 2 条记录:
ADDITIONAL: 2
但它实际上只在响应中向我们显示了 1 条记录:
;; ADDITIONAL SECTION:
dns1.example.net. 3600 IN A 127.0.0.1
root:/etc/namedb/keys# dig @127.0.0.1 foo.example.net any
; <<>> DiG 9.9.1-P1 <<>> @127.0.0.1 foo.example.net any
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20991
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;foo.example.net. IN ANY
;; ANSWER SECTION:
foo.example.net. 3600 IN A 192.168.10.10
;; AUTHORITY SECTION:
example.net. 86400 IN NS dns1.example.net.
;; ADDITIONAL SECTION:
dns1.example.net. 3600 IN A 127.0.0.1
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Jun 11 16:34:26 2012
;; MSG SIZE rcvd: 95