A vs AAAA Records
A records and AAAA records do exactly the same job, just for different generations of the internet protocol. An A record points a name to an IPv4 address; an AAAA record points it to an IPv6 address. Most domains end up publishing both so that every client, old or new, can reach them. Understanding the split helps you set up address records correctly and decide whether you need IPv6 at all.
Quick answer
An A record points a name to an IPv4 address; an AAAA record points the same name to an IPv6 address. They are not alternatives so much as the same record for two address families. The usual setup is to publish both, called dual stack, so clients on either protocol can connect.
The A record
An A record maps a hostname to a 32-bit IPv4 address, written as four numbers separated by dots:
IPv4 is the original addressing scheme of the internet and is still supported by essentially every network and client. Its limitation is the address space: roughly 4.3 billion addresses, which the internet exhausted years ago. That scarcity is the reason IPv6, and the AAAA record, exists.
The AAAA record
An AAAA record maps a hostname to a 128-bit IPv6 address, written as groups of hexadecimal digits separated by colons:
The name comes from the address being four times the size of an IPv4 address (four As). IPv6 provides an effectively unlimited address space and is the long-term direction of the internet, with strong support across mobile and modern networks.
Running both (dual stack)
Dual stack simply means publishing an A record and an AAAA record for the same name, so your server is reachable over both protocols:
example.com AAAA 2606:2800:220:1:248:1893:25c8:1946
A client uses whichever protocol it supports. Modern browsers go further with Happy Eyeballs, attempting IPv4 and IPv6 in parallel and using whichever responds first. For dual stack to work, the server behind both addresses must actually serve the same content.
Do you need AAAA?
You can run a site with only an A record, because IPv4 still reaches everyone. But publishing AAAA records is increasingly worthwhile: a large share of mobile traffic is IPv6, native IPv6 connections avoid carrier translation gateways, and it future-proofs your domain. The main caveat is to add an AAAA record only if the server genuinely listens on that IPv6 address, since a stale AAAA record can cause hard-to-diagnose connection failures for IPv6 clients.
For background on how either record is looked up, see what is DNS.
At a glance
| A record | AAAA record | |
|---|---|---|
| Address family | IPv4 | IPv6 |
| Address size | 32-bit | 128-bit |
| Example | 93.184.216.34 | 2606:2800:220:1::1946 |
| Required today | Yes, in practice | Recommended |