IPv6 DNS Configuration: A Complete Guide
IPv6 is no longer the future — it is the present. With IPv4 address exhaustion a reality, major ISPs, mobile carriers, and cloud providers have rolled out IPv6 extensively. If your DNS is not configured for IPv6, you are leaving performance and accessibility on the table.
IPv4 vs IPv6 in DNS
In DNS, IPv4 addresses are stored in A records and IPv6 addresses in AAAA records (called "quad-A" records). An A record maps a domain to a 32-bit IPv4 address like 93.184.216.34, while an AAAA record maps it to a 128-bit IPv6 address like 2606:2800:220:1:248:1893:25c8:1946.
Why Add IPv6 DNS Records?
- Growing user base — Over 45% of traffic to Google is now over IPv6. Many mobile networks are IPv6-only with NAT64 for IPv4 compatibility.
- Performance — IPv6 can be faster because it avoids NAT translation overhead and often takes more direct routing paths.
- Future-proofing — IPv4 addresses are scarce and expensive. IPv6 is the long-term protocol for the internet.
Setting Up AAAA Records
Adding IPv6 support is straightforward if your hosting provider assigns you an IPv6 address:
- Find your server's IPv6 address from your hosting provider's control panel.
- Log in to your DNS provider's dashboard.
- Add a new AAAA record with your domain name pointing to the IPv6 address.
- If you have a
wwwsubdomain, add an AAAA record for that too.
example.com. 3600 IN AAAA 2606:2800:220:1:248:1893:25c8:1946
www.example.com. 3600 IN AAAA 2606:2800:220:1:248:1893:25c8:1946
Dual-Stack DNS Configuration
Dual-stack means your domain has both A and AAAA records. This is the recommended approach — clients that support IPv6 will use the AAAA record, while older clients fall back to the A record. Most modern operating systems implement the Happy Eyeballs algorithm (RFC 8305), which races IPv4 and IPv6 connections simultaneously and uses whichever connects first.
IPv6 and Mail Servers
If your mail server supports IPv6, you should also add AAAA records for your MX hosts. However, be cautious: make sure your reverse DNS (PTR record) is properly configured for the IPv6 address, as many mail servers reject email from IPs without valid reverse DNS.
Testing Your IPv6 DNS
Verify your configuration with:
dig AAAA example.com
nslookup -type=AAAA example.com
You can also use our Nameserver Lookup Tool to check both A and AAAA records for any domain. Online tools like test-ipv6.com can confirm end-to-end IPv6 connectivity.
Common IPv6 DNS Pitfalls
- Adding AAAA without server support — Only add AAAA records if your server actually listens on IPv6. Otherwise, IPv6 users will experience connection failures before falling back to IPv4.
- Missing reverse DNS — Always configure PTR records for IPv6 addresses, especially for mail servers.
- Firewall rules — Ensure your firewall allows traffic on IPv6. Many servers have IPv4 firewall rules but leave IPv6 wide open or completely blocked.
Configuring IPv6 DNS is a simple step that makes your website more accessible and future-proof. With dual-stack configuration, there is no downside — IPv4 users are unaffected while IPv6 users get a better experience.