9.16 responds with Additional section even though "minimal-responses" is set to yes
As reported in 20030
An authoritative server (secondary, but it happens on a primary as well) is configured with "minimal-responses yes;". Queries to it - either recursive or non-recursive - for a name it owns receive a response containing the answer + an Additional section. For comparison, 9.11 provides only the answer section.
This issue is, firstly, a question: why does 9.16 do this and do subsequent versions behave the same way? Secondly, if this behaviour is unintended can it be fixed?
Config
options {
minimal-responses yes;
zone "junk" {
type primary;
file "db.junk";
};
zone data
@ SOA test test 2022011301 10800 3600 604800 1800
@ NS a.nsset.junk.
@ NS b.nsset.junk.
a.nsset A 1.2.3.4
b.nsset A 1.2.3.5
dig output
; <<>> DiG 9.16.19 <<>> @127.0.0.1 junk ns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44384
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: a42ac059d64983360100000061e06294be1d9cc3a16e3adc (good)
;; QUESTION SECTION:
;junk. IN NS
;; ANSWER SECTION:
junk. 1800 IN NS b.nsset.junk.
junk. 1800 IN NS a.nsset.junk.
;; ADDITIONAL SECTION:
a.nsset.junk. 1800 IN A 1.2.3.4
b.nsset.junk. 1800 IN A 1.2.3.5
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jan 13 17:34:12 GMT 2022
;; MSG SIZE rcvd: 135