DIG defaults to A only rather than A+AAAA search
Summary
when using dig in the dig form, only A records are searched. AAAA records are ignored.
BIND version used
DiG 9.10.6 Also DiG 9.16.11-RedHat-9.16.11-5.fc34
Steps to reproduce
dig split-pao1-64.e-r.fsi.io or dig split-pao1-6.e-r.fsi.io
What is the current bug behavior?
Returns A record only in the first case. Worse, returns NXDOMAIN in the second case.
What is the expected correct behavior?
In the first case, should see A and AAAA records. In the second case, should see AAAA record and not NXDOMAIN.
Relevant configuration files
None... DIG is not configurable or at least does not require any configuration for this exercise.
Relevant logs and/or screenshots
kiev:owen (129) ~ % dig split-pao1-64.e-r.fsi.io 2021/10/06 11:14:43
; <<>> DiG 9.10.6 <<>> split-pao1-64.e-r.fsi.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50746
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;split-pao1-64.e-r.fsi.io. IN A
;; ANSWER SECTION:
split-pao1-64.e-r.fsi.io. 2702 IN A 104.244.13.23
;; Query time: 79 msec
;; SERVER: 104.244.14.16#53(104.244.14.16)
;; WHEN: Wed Oct 06 11:14:55 PDT 2021
;; MSG SIZE rcvd: 69
0.001u 0.003s 0:00.08 0.0% 0+0k 0+0io 0pf+0w
; <<>> DiG 9.10.6 <<>> split-pao1-6.e-r.fsi.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 21958
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;split-pao1-6.e-r.fsi.io. IN A
;; AUTHORITY SECTION:
fsi.io. 2657 IN SOA fsi.io. hostmaster.fsi.io. 2021100601 7200 3600 604800 3600
;; Query time: 76 msec
;; SERVER: 104.244.14.16#53(104.244.14.16)
;; WHEN: Wed Oct 06 11:14:43 PDT 2021
;; MSG SIZE rcvd: 99
0.001u 0.003s 0:00.08 0.0% 0+0k 0+0io 0pf+0w
Possible fixes
In this day and age, I would expect any default search for name resolution to include both protocols. The fact that dig has not changed this default even now is surprising.