Skip to content

dns servers respond with SRV records when queried for AAAA ones #4051

@davepacheco

Description

@davepacheco

I am not sure this is wrong and I think it's not very important, but I want to at least have a record of this.

@jordanhendricks reported this output from dogfood today:

root@oxz_nexus_20b100d0-84c3-4119-aa9b-0c632b0b6a3a:~# dig @fd00:1122:3344:1::1 -p 53 -t AAAA _cockroach._tcp.control-plane.oxide.internal.                                                                                                                                                                           

; <<>> DiG 9.18.14 <<>> @fd00:1122:3344:1::1 -p 53 -t AAAA _cockroach._tcp.control-plane.oxide.internal.
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61672
;; flags: qr rd; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 5
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;_cockroach._tcp.control-plane.oxide.internal. IN AAAA

;; ANSWER SECTION:
_cockroach._tcp.control-plane.oxide.internal. 0 IN SRV 0 0 32221 3237a532-acaa-4ebe-bf11-dde794fea739.host.control-plane.oxide.internal.
_cockroach._tcp.control-plane.oxide.internal. 0 IN SRV 0 0 32221 4c3ef132-ec83-4b1b-9574-7c7d3035f9e9.host.control-plane.oxide.internal.
_cockroach._tcp.control-plane.oxide.internal. 0 IN SRV 0 0 32221 8bbea076-ff60-4330-8302-383e18140ef3.host.control-plane.oxide.internal.
_cockroach._tcp.control-plane.oxide.internal. 0 IN SRV 0 0 32221 a3628a56-6f85-43b5-be50-71d8f0e04877.host.control-plane.oxide.internal.
_cockroach._tcp.control-plane.oxide.internal. 0 IN SRV 0 0 32221 e86845b5-eabd-49f5-9a10-6dfef9066209.host.control-plane.oxide.internal.

;; ADDITIONAL SECTION:
3237a532-acaa-4ebe-bf11-dde794fea739.host.control-plane.oxide.internal. 0 IN AAAA fd00:1122:3344:109::3
4c3ef132-ec83-4b1b-9574-7c7d3035f9e9.host.control-plane.oxide.internal. 0 IN AAAA fd00:1122:3344:105::3
8bbea076-ff60-4330-8302-383e18140ef3.host.control-plane.oxide.internal. 0 IN AAAA fd00:1122:3344:10b::3
a3628a56-6f85-43b5-be50-71d8f0e04877.host.control-plane.oxide.internal. 0 IN AAAA fd00:1122:3344:107::3
e86845b5-eabd-49f5-9a10-6dfef9066209.host.control-plane.oxide.internal. 0 IN AAAA fd00:1122:3344:108::3

;; Query time: 0 msec
;; SERVER: fd00:1122:3344:1::1#53(fd00:1122:3344:1::1) (UDP)
;; WHEN: Thu Sep 07 19:49:30 UTC 2023
;; MSG SIZE  rcvd: 652

Here, dig is making a query for AAAA records. The server is responding with SRV records (and AAAA records as additionals). I expected the server to report no records since there are no AAAA records with that name.

Interestingly, with +short, you get this:

root@oxz_nexus_20b100d0-84c3-4119-aa9b-0c632b0b6a3a:~# dig +short @fd00:1122:3344:1::1 -p 53 -t AAAA _cockroach._tcp.control-plane.oxide.internal.
0 0 32221 3237a532-acaa-4ebe-bf11-dde794fea739.host.control-plane.oxide.internal.
0 0 32221 4c3ef132-ec83-4b1b-9574-7c7d3035f9e9.host.control-plane.oxide.internal.
0 0 32221 8bbea076-ff60-4330-8302-383e18140ef3.host.control-plane.oxide.internal.
0 0 32221 a3628a56-6f85-43b5-be50-71d8f0e04877.host.control-plane.oxide.internal.
0 0 32221 e86845b5-eabd-49f5-9a10-6dfef9066209.host.control-plane.oxide.internal.

As a dig user I find that particularly surprising because I asked for AAAA records and got records on output with no IPv6 addresses. I suspect dig is just dumping whatever it finds in the answer section.

Metadata

Metadata

Assignees

Labels

good first issueIssues that are good for learning the codebase

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions