FIELD NOTES

AAAA Record Explained: IPv6 DNS Records

Publish and verify IPv6 address records, and check connectivity before directing website visitors to an IPv6 endpoint.

Domain: example.com โ†’ AAAA record: 2001:db8::10 โ†’ Web server: IPv6 address
An AAAA record maps a hostname to an IPv6 address. The server must also accept connections over IPv6.

The named scenario below is a worked example for learning, not a verified incident report. Provider settings and outcomes vary.

AAAA Record (IPv6) Resolution

Request AAAA record

Resolver queries NS

Returns IPv6 address

2001:db8::1

Browser connects via IPv6

Content delivered

๐ŸŽฏ Illustrative example: Gaurav Adds IPv6 Support to His Website

Gaurav's hosting now supports IPv6. He adds an AAAA record alongside his existing A record:

Current setup: A record only

gaurav.com โ†’ A โ†’ 93.184.216.34 (IPv4 only). IPv6 users connect via IPv4 fallback.

Adds AAAA record

gaurav.com โ†’ AAAA โ†’ 2606:2800:220:1:248:1893:25c8:1946 (IPv6 address from hosting provider).

IPv6-native clients use AAAA

Mobile networks (Jio, T-Mobile) are largely IPv6. These users now connect directly via IPv6 โ€” faster!

IPv4 clients use A record

Older networks still use the A record. Both coexist โ€” dual-stack setup.

Gotcha: IPv6 must be configured on server

Server must actually listen on the IPv6 address. AAAA record without server config = connection refused.

Dual-stack works perfectly

All users can connect. IPv6 users get slightly faster connections. No IPv4 users are affected.

Dual-stack (A + AAAA) gives the best compatibility โ€” IPv4 and IPv6 users both connect.

Adding AAAA without configuring IPv6 on the server = broken connections for IPv6 users.

What is an AAAA Record?

An AAAA record (pronounced "quad-A") is a DNS record type that maps a domain name to an IPv6 address. It serves the same purpose as an A record but for the newer, 128-bit IPv6 address format instead of the 32-bit IPv4 format.

example.com.  IN  AAAA  2606:2800:0220:0001:0248:1893:25c8:1946

A Record vs AAAA Record

FeatureA RecordAAAA Record
IP VersionIPv4IPv6
Address Length32 bits (4 octets)128 bits (8 groups of 4 hex digits)
Example93.184.216.342606:2800:220:1:248:1893:25c8:1946
Address Space~4.3 billion~340 undecillion
AdoptionUniversalGrowing (~40% globally)

Both record types can coexist for the same domain. This is called dual-stack โ€” clients that support IPv6 use the AAAA record, while IPv4-only clients use the A record.

Why IPv6 and AAAA Records Matter

  • IPv4 exhaustion โ€” All IPv4 addresses have been allocated; IPv6 provides virtually unlimited addresses
  • Performance โ€” Many mobile carriers and ISPs now prefer IPv6, potentially reducing latency
  • Future-proofing โ€” IPv6 adoption is growing; major CDNs and cloud providers fully support it
  • SEO benefit โ€” Google has stated IPv6 support is a positive signal for crawling

How to Set Up an AAAA Record

  1. Get your server's IPv6 address โ€” Check your hosting provider's dashboard or run ip -6 addr show
  2. Log in to your DNS provider and navigate to DNS management
  3. Add a new AAAA record with the hostname and IPv6 address
  4. Verify with: dig example.com AAAA +short

Tip: Use mydnsreport.com DNS Lookup to verify your AAAA record is resolving correctly.

How DNS Resolution Works with AAAA Records

When a client connects to a domain, the resolver queries for both A and AAAA records. Modern systems use the Happy Eyeballs algorithm (RFC 8305):

  1. Query for both A and AAAA records simultaneously
  2. Prefer IPv6 (AAAA) but start an IPv4 fallback after a short delay (~250ms)
  3. Use whichever connection succeeds first

This ensures IPv6 is preferred without penalizing users if IPv6 connectivity is broken.

Common Mistakes

  • โ€ข Adding AAAA without IPv6 connectivity โ€” If your server doesn't actually accept IPv6 traffic, clients may experience delays
  • โ€ข Forgetting reverse DNS (PTR) โ€” If you add AAAA records for a mail server, also set up IPv6 PTR records
  • โ€ข Firewall not allowing IPv6 โ€” Ensure your firewall rules apply to both IPv4 and IPv6

Frequently Asked Questions

What is an AAAA record?

An AAAA record maps a domain name to an IPv6 address, just like an A record maps to an IPv4 address.

What is the difference between an A record and an AAAA record?

An A record points to an IPv4 address (32-bit) while an AAAA record points to an IPv6 address (128-bit). Both can exist for the same domain.

Do I need an AAAA record?

If your server supports IPv6, adding an AAAA record improves accessibility and can improve performance for IPv6-capable clients. It's increasingly recommended.