Quick Answer: An A record (Address record) maps a domain to a 32-bit IPv4 address, while an AAAA record maps it to a 128-bit IPv6 address. You need A records to be compatible with legacy systems. You need AAAA records to support modern internet traffic and to bypass the limitations of the shrinking IPv4 address space. For most websites, implementing both (dual-stack) is the standard configuration.
Understanding the IPv4 and IPv6 DNS Connection
You have likely spent hours optimizing your database queries or compressing images to shave milliseconds off your page load time. Then you receive a report that your site is unreachable for a portion of your users. They aren’t getting 404 errors; they are getting “Connection Timed Out” or “Server Not Found.”
Often, the problem isn’t your code. It’s your DNS configuration.
If you have an A record but no AAAA record, people who use IPv6 networks will not be able to see you on the internet. On the other hand, if you set up an AAAA record but your server is not configured to support IPv6, it is like creating a black hole. Traffic comes in, and it gets sent to an address that doesn’t really work. It just disappears.
You need to understand the difference between A records and AAAA records so that when someone types in your website address, they can actually get to your website. Understanding A records and AAAA records is important to ensure people can reach your site when they type your URL into their browser.
A Record vs AAAA Record Explained
DNS is essentially the phonebook of the Internet. When you type example.com into your browser, that name is useless to the network routing hardware. It needs numbers. A and AAAA records are the two primary ways to provide those numbers.
What Is an A Record?
This is the backbone of the internet. It maps your website’s name to an IP address, such as 192.0.2.1. An IP address is 32 bits, which gives us about 4.3 billion addresses. We actually ran out of these addresses years ago. That is why we use methods like NAT (Network Address Translation) to keep the internet going.
What Is an AAAA Record?
This is the successor. It maps your domain to an IPv6 address, which looks like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. The “AAAA” name is a clever bit of networking history—since an IPv6 address is four times longer than an IPv4 address, they added four ‘A’s to the record type. It uses 128-bit numbers, providing a virtually infinite pool of addresses.

A Record vs AAAA Record Comparison
| Feature | A Record (IPv4) | AAAA Record (IPv6) |
| Address Length | 32-bit | 128-bit |
| Format | Dotted Decimal (1.2.3.4) | Hexadecimal (2001:db8::1) |
| Compatibility | Universal | Growing (Mobile/ISP reliance) |
| Primary Limitation | Address exhaustion | Requires server/network support |
| Recommended For | Everyone | Everyone (with dual-stack) |
Worth knowing: If your hosting provider only gives you an IPv4 address, you technically cannot create a valid AAAA record. Do not try to guess an IPv6 address or point it to a “placeholder.” It will break your site for IPv6-only users.
How to Configure A and AAAA DNS Records
You do not need to choose one or the other. Most modern environments support “dual-stack,” where you host both records simultaneously. The browser decides which one to use based on the user’s connection.
- Identify your IP addresses: Log into your hosting dashboard or your VPS (Virtual Private Server). Look for your Public IPv4 and, if provided, your Public IPv6 address.
- Access your DNS zone file: Log in to your domain registrar or your managed DNS provider (such as Cloudflare, AWS Route 53, or a DNS record checker).
- Add the A Record: Select “Add Record,” choose “A” as the type, enter @ (or leave it blank for root) in the name field, and paste your IPv4 address.
- Add the AAAA Record: Select “Add Record,” choose “AAAA” as the type, enter @ in the name field, and paste your IPv6 address.
- Set TTL (Time to Live): Keep it low (300 seconds) while testing, then increase it to 3600 (1 hour) once you verify everything is resolving correctly.
IPv4 vs IPv6 Performance and Latency
There is a persistent myth that AAAA records cause “slower” site loads. That was true about a decade ago when network “tunneling” was common routers would encapsulate IPv6 traffic inside IPv4 packets, creating massive overhead and latency.
That is largely historical data. Today, on modern fiber and 5G networks, the latency difference between resolving an A record and an AAAA record is measured in microseconds invisible to the human eye.
However, a misconfigured AAAA record will kill your performance. If your DNS records say “I have an IPv6 address” (AAAA), but your web server software (Nginx or Apache) isn’t listening on that IPv6 interface, the browser will try to connect to the IPv6 address, wait for a timeout, and then fail over to the IPv4 address. That failure-and-retry process can add 2–5 seconds of “hanging” time to your page load.
When to Use Only an A Record
If you are running a legacy internal application or using a hosting provider that refuses to provide a native IPv6 address, stick to A records.
There is no “prestige” in having an AAAA record. If your server is not IPv6-ready, an AAAA record is an active liability. You are effectively advertising a service that doesn’t exist at the specific address you are providing. Stick to the IPv4 A record until your infrastructure actually supports the next-generation routing.
DNS Security Best Practices
The transition from IPv4 to IPv6 does not change the fundamental security of your DNS, but it does change your attack surface.
Audit Your Firewall Configuration
If you add an AAAA record, ensure your firewall (like iptables or ufw on Linux) is actually blocking ports on the IPv6 interface. Often, admins secure 0.0.0.0 (IPv4) but forget to secure:: (IPv6), accidentally exposing SSH or databases to the public.
Enable DNSSEC Protection
This adds a cryptographic signature to your records, ensuring that no one can spoof your A or AAAA records. It works regardless of the record type.
Avoid Exposing Unnecessary IP Addresses
Do not think that an IPv6 address provides security through obscurity. IPv6 address spaces are so massive that scanners can’t “brute force” your IP, but they can still find your domain via AAAA records just as easily as they find A records.
Monitor DNS Performance Regularly
Use a tool that checks for both. If your A record is fine but your AAAA record points to an old, non-responsive server, you are losing 10-20% of your global traffic without knowing it.
Troubleshooting Common IPv6 Connectivity Issues
The most common issue I see in the field is the “dual-stack” setup where the A record points to the server, but the AAAA record is misconfigured.
Problem: Users on mobile networks (which are almost exclusively IPv6-native) report that the site won’t load, while users on home broadband (IPv4) report that it works perfectly.
Cause: You likely have an AAAA record, but your web server is not bound to the IPv6 address (::). You are advertising a location that is effectively a dead end.
Fix: Check your server configuration. In Nginx, ensure your listen directive looks like listen [::]:80; in addition to listen 80;. Then, use a tool like dig to verify: dig AAAA yourdomain.com. If it returns an address, ping6 that address from an external terminal to see if the server responds.
Final Thoughts on A Records vs AAAA Records
If you want to ensure your site is reachable by everyone, take these steps today:
- Verify your hosting: Confirm that your web host actually supports IPv6. If they don’t, stop here.
- Test your server: Bind your web server software to the IPv6 address.
- Update DNS: Add the AAAA record.
- Monitor: Use a check tool to confirm the records resolve correctly from multiple global locations.
If you don’t have an IPv6 address available, do not force the issue. A rock-solid A record is infinitely better than a broken AAAA record.
Frequently Asked Questions
Do I need an AAAA record if I have an A record?
You don’t have to, but you really should. IPv4 is the old standard, but mobile carriers and modern ISPs are increasingly reliant on IPv6. If you omit the AAAA record, you are essentially ignoring a growing portion of your potential traffic. It is not mandatory, but it has become the industry baseline for any modern, accessible web project.
Can I have multiple A records for one domain?
Yes, and it is a standard way to handle basic traffic management. If you add multiple A records to the same domain, DNS resolvers will typically cycle through them. It is a simple version of load balancing—not as good as a dedicated load balancer, but it helps distribute incoming requests across different servers without needing extra software.
What happens if I enter the wrong IPv6 address in an AAAA record?
Your site will become inaccessible to any user whose network path prefers IPv6. They will be directed to an address that does not host your web server, resulting in a connection error. This is one of the most frustrating types of downtime because it appears the site is “up” for some users and “down” for others, making it hard to diagnose.
Is IPv6 more secure than IPv4?
Not at all. That is a common misconception. IPv6 was designed to address address exhaustion, not to serve as a security layer. You still face all the same threats DDoS attacks, unauthorized access, and malicious scripts. You need to configure your firewalls and application security for IPv6 exactly as strictly as you do for IPv4.
Why does my AAAA record change?
If you are on a home internet connection (with a dynamic IP) or using certain cloud providers, your IP address might rotate. A and AAAA records are not “sticky.” If your server reboots and receives a new IP, your DNS records become stale. You must use a Dynamic DNS (DDNS) provider or an API script to automatically update your DNS records whenever your IP address changes.
How do I check if my domain is IPv6-ready?
You can use command-line tools like dig or nslookup, or web-based DNS checkers. These tools will return the records configured for your domain. If your domain returns an AAAA record, it is IPv6 enabled. Then, you should test the connectivity to that IP to ensure your server is actually responding to requests on that address.
Latest Posts: