AAAA Record: What an IPv6 Quad-A Record Is, Syntax, and Examples
An AAAA record (pronounced "Quad-A", or quad A record) is a DNS resource record that maps a domain name to a 128-bit IPv6 address (such as 2606:4700:4700::1111) so visitors on IPv6 networks reach your server. Domains publish AAAA records beside IPv4 A records for dual-stack routing. The quadruple-A name reflects IPv6's fourfold bit length.
Why Is It Called an AAAA Record and What Does Its Syntax Look Like?
An AAAA record (pronounced "Quad-A", IANA Type 28, ) takes its four-letter name from the fact that a 128-bit IPv6 address is exactly four times the bit length of a 32-bit IPv4 A (Address) record. Inspecting the four-letter AAAA designation find that standard IPv4 infrastructure provides 4.3 billion addresses written in dotted-decimal notation (93.184.216.34), whereas IPv6 provides 340 undecillion addresses written as eight 16-bit hexadecimal groups separated by colons (2606:2800:220:1:248:1893:25c8:1946). The table below defines the 4 zone fields, wire specifications, and official IPv6 shorthand compression rules of an AAAA record.
The following production AAAA record example demonstrates both expanded syntax and zero-compressed notation in zone file format:
; Hostname TTL Class Type 128-Bit IPv6 Address (Value)
example.com. 3600 IN AAAA 2606:2800:220:1:248:1893:25c8:1946
dns.example.com. 3600 IN AAAA 2606:4700:4700::1111 | Field / Rule | Specification | Example / Protocol Constraint |
|---|---|---|
| Official Record Name | IPv6 Address Record (AAAA) | Standardized in RFC 3596; replaces obsolete experimental A6 records. |
| IANA Type Code | Type 28 (Decimal) | Queried by resolvers requesting an IPv6 address endpoint. |
| Value / RDATA Format | 128-bit IPv6 Address (16 bytes) | 8 groups of 4 hexadecimal digits (0-9, a-f) separated by colons (:). |
| Rule 1: Leading Zeros | Omit Leading Group Zeros | The sequence :0220:0001:0248: compresses to :220:1:248: (RFC 5952). |
| Rule 2: Double-Colon (::) | Collapse Contiguous Zeros | One run of consecutive all-zero groups collapses to :: at most once per address. |
| Coexistence & Apex (@) | Root (@) & Subdomains | Coexists with A, MX, TXT, NS, SOA; conflicts with a CNAME Record. |
Modern DNS control panels accept both full 39-character uncompressed IPv6 strings and RFC 5952 zero-compressed strings (::), normalizing characters to lowercase automatically. Validate, expand, or compress IPv6 addresses with our IPv4 to IPv6 Converter, and inspect active records globally using the live AAAA Record Lookup (IPv6) tool.
AAAA Record vs A Record: How Do They Compare? (Comparison Table)
An AAAA record and an A Record perform the exact same hostname-to-IP translation job for two different internet protocol generations: A records map domains to 32-bit IPv4 addresses, while AAAA records map domains to 128-bit IPv6 addresses. Comparing an A record vs AAAA record reveals identical routing roles operated across distinct transport protocols. The table below compares A and AAAA records across 7 technical dimensions.
| Feature / Dimension | A Record (IPv4) | AAAA Record (IPv6) |
|---|---|---|
| IP Protocol Version | IPv4 (Internet Protocol v4) | IPv6 (Internet Protocol v6) |
| Address Bit Length | 32 bits (4 bytes) | 128 bits (16 bytes - 4x bit length) |
| Total Address Space | ~4.29 billion (2^32 addresses) | ~340 undecillion (2^128 addresses) |
| Address Syntax | 4 decimal octets (93.184.216.34) | 8 colon-hex groups (2606:4700:4700::1111) |
| IANA DNS Type Code | Type 1 (RFC 1035) | Type 28 (RFC 3596) |
| Reverse DNS (PTR) Zone | .in-addr.arpa (Reversed octets) | .ip6.arpa (Reversed 32 hex nibbles) |
| SPF Record Mechanism | ip4: (e.g., ip4:192.0.2.0/24) | ip6: (e.g., ip6:2001:db8::/32) |
The lack of native backward compatibility between IPv4 and IPv6 means an IPv4-only client cannot connect directly to an AAAA address, while an IPv6-only client requires an AAAA record or carrier-level NAT64 translation. Modern web architectures publish both an A record (verifiable via our A Record Lookup) and an AAAA record on identical hostnames. Review architectural tradeoffs in depth in our guide to IPv4 vs IPv6.
How Do Dual-Stack Browsers Use AAAA and A Records Together? (Happy Eyeballs)
Modern dual-stack web browsers and operating systems resolve AAAA and A records simultaneously using the Happy Eyeballs algorithm (RFC 8305) across 5 connection-racing steps so users receive the fastest available network path:
- Transmit two parallel DNS queries from the client device (
QTYPE=AAAAfor IPv6 andQTYPE=Afor IPv4) to the recursive resolver at the exact same millisecond. - Prioritize the
AAAAresponse first when both records arrive, granting IPv6 a 50-millisecond resolution window before falling back if the IPv6 DNS response experiences network delay. - Initiate a TCP (SYN) or QUIC handshake to the server's IPv6 address first, starting a 250-millisecond connection head-start timer.
- Launch a parallel fallback connection to the server's IPv4 address if the IPv6 handshake does not complete within 250 milliseconds.
- Use whichever connection completes the initial handshake first and terminate the slower runner-up socket immediately.
Happy Eyeballs ensures optimal routing for over 45% of global mobile and fiber internet connections (according to Google IPv6 Adoption Statistics, 2026) that default to IPv6 when an AAAA record exists. This design avoids mobile carrier-grade NAT congestion while automatically protecting visitors from connection delays if local IPv6 routing fails.
Warning: How a Bad or Stale AAAA Record Breaks Your Website, SSL, and Email
Publishing an unreachable or leftover AAAA record causes 4 severe production issues across website load times, SSL certificate validation, outbound email bounces, and web server routing:
- Stale AAAA Records Pointing to Old Web Hosts Cause SSL Errors: Migrating a website to a new hosting provider while updating only the IPv4 A record leaves the old AAAA record pointing to the previous host. Dual-stack client browsers running Happy Eyeballs prioritize IPv6, causing visitors on mobile and fiber networks to land on the retired host and encounter
NET::ERR_CERT_COMMON_NAME_INVALID(detailed in our guide to SSL Certificate Errors), while IPv4 users see the new site. - Web Servers Missing IPv6 Listen Directives Drop Connections: Publishing an AAAA record when NGINX or Apache listens exclusively on IPv4 (
listen 443 ssl;) without the corresponding IPv6 socket directive (listen [::]:443 ssl;) forces every IPv6 visitor to experience a 250 ms connection timeout before falling back to IPv4, or serves the wrong default virtual host. - Outbound IPv6 Mail Without Matching Reverse DNS Rejects Messages (550-5.7.25): Mail servers attempt outbound delivery to Gmail (
mx.google.com) over IPv6 whenever an IPv6 interface exists. Google strictly requires every sending IPv6 address to carry a valid reverse DNS PTR Record under.ip6.arpathat resolves back to the sending hostname. Missing reverse DNS records trigger permanent rejections with error550-5.7.25. Audit your IPv6 reverse DNS using our live PTR (Reverse DNS) Lookup. - Omitting ip6: in Your SPF Record Breaks Email Authentication: Transmitting outbound email over an IPv6 interface with only
ip4:declared in your SPF Record causes SPF validation to fail at receiving servers. Production email setups include their IPv6 address or subnet using theip6:mechanism (such asv=spf1 ip4:198.51.100.10 ip6:2001:db8:1234::/48 -all).
Zone administrators adhere to this operational principle: only publish an AAAA record if your origin web server or CDN proxy actively listens on IPv6 and serves your SSL certificate on [::]:443. Operating an IPv4-only server with no AAAA record preserves faster, error-free connectivity compared to publishing a broken IPv6 endpoint.
How to Add, Check, and Verify an AAAA Record (dig, nslookup, and Browser DoH)
Publish and verify an AAAA record for your domain by completing 4 configuration and diagnostic steps across your DNS control panel and terminal:
- Confirm that your web server or load balancer possesses an assigned public IPv6 address and responds over HTTPS by executing
curl -6 -Iv https://[2001:db8::1]prior to creating DNS records. - Create a new record in your DNS control panel with Type set to
AAAA, Host set to@(for root) or the subdomain (www), Value set to the 128-bit IPv6 address, and TTL set to3600seconds. - Query the published record from your command prompt using
digornslookupto confirm the compressed IPv6 answer:# Query AAAA record on Linux / macOS: dig example.com AAAA +short # Query AAAA record on Windows Command Prompt: nslookup -type=aaaa example.com 1.1.1.1 # Test end-to-end IPv6 HTTPS connection to the domain: curl -6 -Iv https://example.com - Verify global resolution consistency across worldwide DNS checkpoints with our DNS Propagation Checker.
Resolving these verification commands confirms end-to-end IPv6 readiness from authoritative nameservers down to the application layer. Maintaining strict parity between A records, AAAA records, reverse DNS PTR mappings, and SPF authentication mechanisms ensures reliable dual-stack domain accessibility across the global IPv6 internet. Review complete protocol specifications across all resource records in our directory of DNS Record Types.
Frequently asked questions
What does AAAA stand for in DNS?+
In DNS, the AAAA record (pronounced a fourfold Address record (pronounced "Quad-A"). The IETF named the 128-bit IPv6 address record AAAA (32 bits x 4 = 128 bits) because a single A record stores a 32-bit IPv4 address.
Do I need both an A record and an AAAA record for my website?+
Yes. Publish both an A record (for IPv4) and an AAAA record (for IPv6) on the same hostname when your web server or CDN supports IPv6. This dual-stack setup lets visitors on modern mobile and fiber IPv6 networks connect directly while keeping full compatibility for IPv4-only users.
What happens if my domain only has an A record and no AAAA record?+
In practice, your website still works normally for visitors on standard IPv4 and dual-stack networks. Almost all consumer ISPs and mobile carriers run dual-stack networks or NAT64 gateways, so when a visitor's browser sees no AAAA record, it immediately connects to your IPv4 A record with zero error.
Why does my website load for some people and fail for others after I changed my A record?+
In real-world migrations, this classic bug happens when you updated your IPv4 A record to a new web host but forgot to update or delete an old IPv6 AAAA record. Visitors on IPv6 networks get routed to your old host via the leftover AAAA record; delete or update the AAAA record to fix it immediately.
Last verified: 2026-11-11