Ask for AAAA over either IP version
03An IPv6 address answer can travel over IPv4. Conversely, an IPv4 address answer can travel over IPv6.
The chosen IPv4 address 192.0.2.1 travels inside a DNS answer over IPv6. DNS transport and record address family remain separate.
Source for this drawing: RFC 3596 · Read RFC section 2.3 ↗
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Terms in this drawing
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
The question chooses the record type; transport carries the message.
- An Internet-class AAAA query asks for the associated AAAA records in the answer section. QNAME is the queried name, QCLASS the record class (here IN), and QTYPE the requested type (AAAA or A).
- A type AAAA query does not trigger additional-section processing. Do not automatically add A records just because the response contains IPv6 addresses.
- The IP version used to query DNS is independent of the IP version stored in records. RFC 3596 does not choose which application address to connect to.
Shown exchanges assume a successful, untruncated response and locally available data; the requester can be a DNS lookup service. Generic DNS alias, negative-answer, retry and truncation behavior is separate. Transport examples do not promise working connectivity or a particular UDP/TCP choice.
Read the RFC section ↗