An AAAA record (pronounced "quad-A") is a DNS resource record that maps a domain name to a 128-bit IPv6 address. While a standard A record points a domain to a 32-bit IPv4 address, an AAAA record uses four times the bit length—hence its name—to support the vast address space of the IPv6 protocol. Configuring this record is required to make a website, API, or mail server reachable over native IPv6 networks.
How it works
When a user visits a domain on an IPv6-capable network, their operating system queries a recursive DNS resolver for an AAAA record alongside a standard A record. The authoritative nameserver responds with the 128-bit address formatted as eight groups of four hexadecimal digits separated by colons. Because IPv6 provides enough unique addresses for every device, clients connect directly to the destination server without relying on Network Address Translation (NAT), which simplifies routing and lowers packet header overhead.
In dual-stack environments where both IPv4 and IPv6 are active, modern browsers and operating systems use the Happy Eyeballs algorithm (RFC 8305) to prevent connection delays. The client sends both AAAA and A queries simultaneously and initiates a connection to whichever protocol responds fastest, giving IPv6 a slight head start while seamlessly falling back to IPv4 if the IPv6 route stalls.
Example
In a standard BIND DNS zone file, an AAAA record specifies the hostname, Time to Live (TTL), record class, record type, and target IPv6 address:
example.com. 3600 IN AAAA 2001:db8:85a3::8a2e:370:7334
www 3600 IN AAAA 2001:db8:85a3::8a2e:370:7334
Notice the double colon (::), which is standard IPv6 shorthand used to compress consecutive groups of zeros. You can verify that your DNS provider is serving the record properly using the dig command:
dig +short AAAA example.com
If configured correctly, the command outputs the exact IPv6 address stored in your zone file.
What matters when choosing a server or hosting
- Native dual-stack routing: Ensure your cloud provider or web host assigns a dedicated, routable IPv6 address or prefix (typically a
/64subnet) to your instance rather than relying on tunneling brokers, which add latency. - Firewall parity: Verify that your host's security groups or firewall rules manage IPv6 traffic (
ip6tablesornftables) with the same strictness as IPv4. Many platforms separate IPv4 and IPv6 firewall policies. - Reverse DNS (PTR) support: If you run self-hosted mail servers, your hosting control panel must allow you to set a matching reverse DNS (PTR) record for your IPv6 address, or major email providers will reject your outbound messages.
- DNS API and short TTLs: Look for DNS hosts that support low TTL values (such as 60 to 300 seconds) and automated API updates so you can quickly reroute IPv6 traffic during failover events.
Common mistakes
- Publishing an AAAA record before configuring the web server: If you add an AAAA record in DNS before Nginx, Apache, or your load balancer is bound to listen on
[::]:80and[::]:443, IPv6 visitors will experience timeouts or connection refused errors. - Forgetting IPv6 firewall rules: Leaving the IPv6 firewall wide open while locking down IPv4 exposes administrative ports like SSH to the public internet.
- Using a CNAME at the zone apex: You cannot place a CNAME record on a root domain (
example.com) alongside other records. Use explicit AAAA records or provider-specific ALIAS/ANAME records at the root instead.
FAQ
Can a domain have both an A record and an AAAA record?
Yes. Running both records simultaneously is standard practice for dual-stack hosting, allowing IPv6-capable clients to use the AAAA record while legacy IPv4-only networks fall back to the A record.
Should I use compressed or full IPv6 notation in my DNS panel?
Either format works. Most managed DNS interfaces accept shortened IPv6 addresses using :: zero-compression and automatically normalize them into standard RFC-compliant zone entries.
Does adding an AAAA record improve website speed?
It can slightly reduce latency on mobile and modern broadband networks by eliminating carrier-grade NAT translation hops, though overall page load time still depends primarily on server response time and CDN caching.