
AAAA Record in DNS: What It Is and How It Differs from an A Record
Every time you type a website address into your browser, the Domain Name System (DNS) translates that name into an IP address your computer can connect to. The records that do this translation come in several types — and the AAAA record is the one that points a domain to an IPv6 address. If you have ever wondered what AAAA in DNS means, how it differs from an A record, and when you need one, this guide has the answers.
What Is an AAAA Record in DNS?
An AAAA record — pronounced “quad-A” — is a DNS record that maps a domain name to an IPv6 address. When a user visits your website over IPv6, their device asks DNS for the AAAA record of your domain, receives the IPv6 address, and connects to it. Without an AAAA record, IPv6-only visitors cannot reach your site at all.
The name comes from the record’s history: the original record for mapping a domain to an IPv4 address is the A record. When IPv6 arrived with its much longer addresses, the new record type needed a name — and since an IPv6 address is four times the length of an IPv4 address, the record became “AAAA”, or four As. The name is a mnemonic, not an acronym.
What Is DNS?
DNS is the phone book of the internet. Computers communicate using IP addresses — numbers that identify devices on a network — but people remember names such as example.com. DNS bridges the two: when you enter a domain name, your device asks a DNS resolver, which looks up the records for that name and returns the matching IP address.
A domain’s DNS zone contains many record types, each with a job: A and AAAA records point to addresses, MX records point to mail servers, CNAME records alias one name to another, TXT records hold verification and policy information, and NS records identify the authoritative name servers. The AAAA record is one of the most important of these, because it controls whether your domain works on the modern, IPv6 internet.
AAAA vs A Record: Key Differences
| Feature | A record | AAAA record |
|---|---|---|
| Points to | IPv4 address | IPv6 address |
| Address length | 32 bits | 128 bits |
| Address format | Four decimal numbers (192.0.2.1) | Eight hexadecimal groups (2001:db8::1) |
| Example value | 192.0.2.1 | 2001:db8:85a3::8a2e:370:7334 |
| Address space | About 4.3 billion addresses | About 340 undecillion addresses |
| Introduced | Original DNS (1980s) | With IPv6 (RFC 3596, 2003) |
| Needed for | IPv4 connectivity | IPv6 connectivity |
The practical difference is simple: an A record makes your domain reachable over IPv4, and an AAAA record makes it reachable over IPv6. Most domains today need both, because the internet is in a long transition from IPv4 to IPv6 and visitors arrive over both protocols.
How Does an AAAA Record Work?
When a device with IPv6 support wants to visit your site, the DNS lookup follows these steps:
- The browser asks the configured DNS resolver for the AAAA record of the domain.
- The resolver queries the domain’s authoritative name servers and receives the IPv6 address from the AAAA record.
- The resolver returns that address to the browser, which opens an IPv6 connection to it.
- If the device also needs IPv4 — for example, because the server has no IPv6 — the browser asks for the A record instead.
Modern devices prefer IPv6 when both are available, using an algorithm called Happy Eyeballs that tries IPv6 first and falls back to IPv4 if it does not connect quickly. That means an incorrect or missing AAAA record can slow down or break access for IPv6 users, while a correct one makes their connection faster and more direct — IPv6 needs no address translation, so the path is simpler.
IPv6 Address Format in AAAA Records
An IPv6 address is 128 bits, written as eight groups of four hexadecimal digits separated by colons — for example, 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Groups of zeros can be compressed with a double colon, so the same address is usually written as 2001:db8:85a3::8a2e:370:7334. That compression is legal but easy to get wrong: only one double colon is allowed per address, and a mistake produces an invalid record.
When you create an AAAA record, you enter the IPv6 address exactly as your hosting provider or server gives it to you. Copy it carefully — a single wrong digit sends visitors to the wrong server or nowhere at all. Unlike IPv4 addresses, IPv6 addresses are not something to type from memory.
When Do You Need an AAAA Record?
- Your server or host supports IPv6. If your hosting provider gives you an IPv6 address, add an AAAA record so IPv6 visitors can use it.
- Your audience includes IPv6-only networks. Some mobile networks and some countries run IPv6-only with translation for IPv4. Without an AAAA record, your site may be slow or unreachable for those users.
- You want future-proof connectivity. IPv4 addresses are exhausted; IPv6 is the internet’s growth path. Adding an AAAA record is a small step that keeps your domain reachable as the balance shifts.
- Your mail or services use IPv6. Mail servers and APIs also use AAAA records, so that other systems can reach them over IPv6.
You do not need an AAAA record if your server has no IPv6 address. Adding one that points nowhere — or to the wrong address — is worse than having none, because it will break access for the growing share of users whose devices prefer IPv6.
How to Create and Check an AAAA Record
Creating an AAAA record takes a few minutes in your DNS provider’s control panel:
- Open the DNS settings for your domain.
- Add a new record of type AAAA.
- Set the host or name — usually @ for the root domain, or www for the www subdomain.
- Enter the IPv6 address exactly as provided by your host.
- Set the TTL (time to live), usually 300–3600 seconds, and save.
To check the record, use the dig command on Linux or macOS, or nslookup on Windows:
dig AAAA example.com +short
nslookup -type=AAAA example.com
Both should return the IPv6 address you entered. Remember that DNS changes take time to propagate: the old value can remain cached by resolvers until the TTL expires, so wait and re-check if the new value does not appear immediately.
Addressing is also what makes the rest of networking work. When a device cannot get an address from DHCP, it falls back to a self-assigned address — our guide to what APIPA is and how it works explains that fallback. And the hardware that carries all of this traffic is explained in our guide to what a network switch is and how it works.
![]()
Common AAAA Record Problems
| Problem | Symptom | Fix |
|---|---|---|
| No AAAA record | IPv6-only users cannot reach the site | Add an AAAA record pointing to the server’s IPv6 address |
| Wrong IPv6 address | Site fails to load for IPv6 users, works for IPv4 users | Correct the address; copy it from the hosting panel |
| Invalid format | DNS provider rejects the record, or it does not resolve | Check the address format; only one :: is allowed |
| Missing www record | example.com works, www.example.com does not (or vice versa) | Add an AAAA record for both the root and www |
| Stale cache | Changes do not appear for some users | Wait for the TTL to expire; lower the TTL before big changes |
| IPv6 not enabled on the server | AAAA record exists but connections fail | Enable IPv6 on the server and firewall before publishing the record |
AAAA Records and Security
AAAA records are not a security feature, but they interact with security in useful ways. IPv6 restores end-to-end connectivity — there is no NAT hiding internal addresses — so firewall rules must be written for IPv6 explicitly; an IPv4-only firewall leaves the IPv6 path unguarded. Attackers also use DNS records in phishing: a lookalike domain with its own AAAA record can host a fake site that is reachable over IPv6 even if its IPv4 address is blocked. And DNS filtering and monitoring should cover AAAA lookups, not just A lookups, because malware increasingly uses IPv6 for command and control.
For voice and real-time services, addressing matters too: our guide to voice over IP (VoIP) explains how voice traffic uses the same DNS and addressing foundations.
Frequently Asked Questions
What does AAAA stand for in DNS?
AAAA is not an acronym — it is a mnemonic. The record for an IPv4 address is the A record, and because an IPv6 address is four times as long as an IPv4 address, the IPv6 record became “AAAA”, or four As. It is pronounced “quad-A”.
What is the difference between an A record and an AAAA record?
An A record maps a domain to an IPv4 address (32 bits, written as four decimal numbers). An AAAA record maps a domain to an IPv6 address (128 bits, written as eight hexadecimal groups). You need an A record for IPv4 visitors and an AAAA record for IPv6 visitors.
Do I need both an A and an AAAA record?
Yes, in most cases. The internet is dual-stack: many visitors use IPv4 and many use IPv6. Having both records means your domain works for everyone. If your server has no IPv6 address, an A record alone is enough — but do not add an AAAA record until IPv6 is genuinely enabled.
How do I check my AAAA record?
Run dig AAAA yourdomain.com +short on Linux or macOS, or nslookup -type=AAAA yourdomain.com on Windows. Online DNS lookup tools will also show your AAAA record. The command should return the IPv6 address you configured.
Can an AAAA record cause my website to break?
Yes, if it points to the wrong address or to a server where IPv6 is not enabled. Devices that prefer IPv6 will try the AAAA address first, so a bad record breaks the site for them even though IPv4 users are unaffected. Always test with dig and a real IPv6 connection after adding or changing a record.
What is the TTL of an AAAA record?
The TTL (time to live) is how long resolvers cache the record, in seconds. Common values are 300 seconds (5 minutes) for records that change often and 3600 seconds (1 hour) for stable records. Lower the TTL before a planned change so the new value spreads faster.
Conclusion
An AAAA record is a small piece of DNS with a big job: it connects your domain to the IPv6 internet. It differs from an A record only in the address it carries — 128-bit IPv6 instead of 32-bit IPv4 — but that difference decides whether a growing share of visitors can reach you at all. If your host provides an IPv6 address, add an AAAA record for your root domain and for www, check it with dig or nslookup, make sure your firewall covers IPv6, and keep the address correct. Done that way, your domain is ready for the internet as it is now — dual-stack, IPv6-first, and still growing.


