AAAA record
AAAAThe AAAA record is the IPv6 equivalent of an A record. The name is four As because an IPv6 address is four times the size of an IPv4 one.
What an AAAA record does
An AAAA record maps a hostname to a 128-bit IPv6 address, in the same way an A record maps to a 32-bit IPv4 address. The record type is defined in RFC 3596.
A name can publish A and AAAA records at the same time. They are independent records, and publishing one says nothing about the other.
What an AAAA record looks like
An AAAA record pairs a name with one IPv6 address: example.com. 3600 IN AAAA 2001:db8::1. Apart from the type and the address format it is written exactly like an A record.
The double colon in that address is IPv6 shorthand for the longest run of zero groups, and it may appear only once in an address. 2001:db8::1 and 2001:0db8:0000:0000:0000:0000:0000:0001 are the same address written two ways, and DNS accepts either.
How clients choose
A dual-stack client typically queries for both A and AAAA and decides which to use based on what its own network supports. Many clients implement Happy Eyeballs (RFC 8305), which starts connections over both and keeps whichever answers first.
That means publishing a broken AAAA record is worse than publishing none: clients will try IPv6, wait, and fall back, adding latency to every connection.
Checking an AAAA record
dig AAAA example.com +short returns the IPv6 addresses published for the name. An empty answer means no AAAA record exists, which is a normal state rather than a fault.
Resolving the record and reaching the address are separate questions, and only the first is a DNS problem. A name that answers over IPv6 but refuses connections points at the host or the network path rather than at the zone.
Common mistakes
Publishing an AAAA record for a server that is not actually reachable over IPv6 is the usual failure. The record resolves, the connection times out, and the user sees a slow site rather than an error.
Address formatting is the other one. IPv6 addresses are written in hexadecimal with colons and may be abbreviated with a double colon, which can only appear once in an address.
