Skip to content

What Is an AAAA Record and How Does It Relate to IPv6?

The AAAA record is the IPv6 counterpart of the A record. This guide explains the format, when you need it, how to add it safely and how to test that IPv6 works.

10 min readUpdated Nov 19, 2026By XPASS Editorial Team

What Is an AAAA Record and How Does It Relate to IPv6?

Most people meet DNS through the A record, the line that connects a domain to a server address. Sooner or later you will notice a second, similar-looking type in the same panel: the AAAA record, pronounced "quad A". It looks like a duplicate, but it serves a different protocol. This guide explains what an AAAA record is, what IPv6 has to do with it, when you actually need one, and how to add it without causing problems for your visitors.

What an AAAA record is

An AAAA record stores an IPv6 address for a name. The structure is the same as an A record: a name, a type, a value, and a TTL. Only the value differs. Where an A record holds a 32-bit IPv4 address written as four decimal numbers, an AAAA record holds a 128-bit IPv6 address written as eight groups of hexadecimal digits separated by colons.

The name "AAAA" is a small joke that happens to be accurate. An IPv6 address is four times as long as an IPv4 address, so its record type has four As. The record type is part of the DNS design that grew out of the original specifications such as RFC 1035, extended to carry the longer addresses, while IPv6 itself is described in RFC 8200.

A real example of an IPv6 address looks like this: 2001:db8:85a3:0000:0000:8a2e:0370:7334. That range, beginning with 2001:db8, is reserved for documentation, so it is safe to use in examples. When you publish a record you would use the address your provider assigns to your server.

IPv6 in plain terms

IPv4 has a limited pool of addresses, a little over four billion in total, and that pool has been effectively used up in many regions. IPv6 was designed to fix this by offering a vastly larger space. For website owners, the practical effect is that more internet users, particularly on mobile networks and some home connections, now have IPv6 available, and some have IPv6 only with a translation layer for IPv4 content.

You do not need to understand the full protocol to use an AAAA record. What matters is this: a visitor's device chooses between IPv4 and IPv6 depending on what its network supports and what the DNS answer contains. If your name has only an A record, IPv6-only visitors rely on translation or cannot reach you. If your name has an AAAA record, visitors on IPv6 can connect directly.

IPv6 address formatting

IPv6 addresses are written in a compact notation, and the shortening rules often confuse beginners. These rules apply:

  • Leading zeros in a group can be dropped, so 0370 becomes 370 and 0000 becomes 0.
  • One run of consecutive all-zero groups can be replaced by a double colon ::, but only once per address.
  • Letters are not case sensitive, although lowercase is common.
Written in full Written short
2001:0db8:85a3:0000:0000:8a2e:0370:7334 2001:db8:85a3::8a2e:370:7334
2001:0db8:0000:0000:0000:0000:0000:0001 2001:db8::1

Most DNS panels accept either form, but they will usually store a normalised version. If your panel rejects an address, check for stray spaces, missing groups, or two double colons.

A record versus AAAA record

Aspect A record AAAA record
Protocol IPv4 IPv6
Value format Four decimal numbers, such as 203.0.113.25 Eight hexadecimal groups, such as 2001:db8::1
Size 32 bits 128 bits
Covers Visitors and servers using IPv4 Visitors and servers using IPv6
Needed when You have an IPv4 server address Your server has a working IPv6 address you want visitors to use

They do not replace one another. They sit side by side. If you want the basics of the IPv4 side first, read what an A record is and how to point a domain to a server, and then come back to add the IPv6 half.

Dual stack: using both

Running both address types for the same name is called dual stack. The domain has an A record and an AAAA record. A client that supports both asks for both, receives both, and chooses. Many modern clients use a technique that tries IPv6 first, and if the connection does not succeed quickly, tries IPv4. This behaviour protects visitors from long delays when one family is broken, but it does not remove the delay entirely, and it does not fix a server that is misconfigured.

Dual stack is the usual way to adopt IPv6. You do not give up IPv4. You add IPv6 on top, and visitors on either kind of network are served.

When you need an AAAA record

You need one when all of the following are true:

  1. Your server or hosting platform has a public IPv6 address assigned to it.
  2. Your web server software is configured to listen on that address.
  3. Your firewall and security rules allow connections to it on the ports you use, such as 80 and 443.
  4. Your TLS certificate covers the domain name, so secure connections work over IPv6 just as they do over IPv4.

You do not need one when your host gives you only IPv4, or when you cannot test IPv6. A site without an AAAA record is not broken. It simply does not offer a native IPv6 path.

Some hosting platforms and content delivery services create AAAA records for you or tell you exactly which addresses to use. If your provider publishes a ready-made record, copy it exactly rather than guessing.

Step by step: add an AAAA record

Step 1: Get the IPv6 address. Find it in your hosting dashboard or cloud console. Copy it with care. It should be a global address, not a link-local address beginning with fe80, which only works inside a local network.

Step 2: Test the address before publishing. If you can, connect to it directly. For example, try curl -6 -g "http://[2001:db8::1]/" with your real address in brackets, or use a browser. A successful response shows that the server listens on IPv6.

Step 3: Open the DNS zone. Make sure you are editing the zone at the place that serves your domain's nameservers. If you are unsure, see our guide on nameservers and what happens when you change them.

Step 4: Add the record. Create a record with type AAAA, name @ for the root domain, and the IPv6 address as the value. Repeat for www if you use separate records for it, or see how the CNAME record works with www if you would rather make www an alias.

Step 5: Choose a TTL. A moderate value such as 3600 is typical. If you are unsure about the setup, use a shorter value such as 300 at first so that a mistake can be corrected quickly.

Step 6: Verify the DNS answer. Run dig example.com AAAA +short or nslookup -type=AAAA example.com and confirm the output matches what you entered.

Step 7: Verify the whole path. Open the site over IPv6. Many online tools can test whether a site is reachable over IPv6, or you can connect from a network that supports it. Check both the root domain and www, and check HTTPS as well as HTTP.

A worked example

You run mybakery.example. Your hosting dashboard shows an IPv4 address 203.0.113.25 and an IPv6 address 2001:db8:85a3::8a2e:370:7334. You already have the A records. You now add the matching IPv6 records.

Type Name Value TTL
A @ 203.0.113.25 3600
AAAA @ 2001:db8:85a3::8a2e:370:7334 3600
A www 203.0.113.25 3600
AAAA www 2001:db8:85a3::8a2e:370:7334 3600

After saving, dig mybakery.example AAAA +short should print the IPv6 address. You then open the site from a network with IPv6 and see the normal website. If the page times out only over IPv6, the web server is not listening on that address or a firewall is blocking it, and the right fix is to correct the server or remove the AAAA record until it is ready.

Common problems

The server does not listen on IPv6. Many web servers listen only on IPv4 until you add an IPv6 listener. The DNS record can be perfect while the connection still fails.

A firewall allows IPv4 only. Firewalls often have separate rules for IPv4 and IPv6. A rule you added for 443 over IPv4 may not exist for IPv6.

The address changes. Some providers assign IPv6 prefixes that can change, particularly on residential connections. If the address changes, the record goes stale and visitors on IPv6 are sent to nowhere.

Mismatched names or certificates. If the certificate is installed on one virtual host, but the IPv6 listener falls through to a default site, visitors see a certificate warning only over IPv6.

Different servers on each protocol. If the A and AAAA records point to different machines with different content, visitors will see different pages depending on their network. Keep them pointing to the same site unless you have a clear plan.

Forgotten records. An old AAAA record left behind after you move to a new host can send IPv6 visitors to the previous host while IPv4 visitors reach the new one. When you migrate, update or remove both record types.

Who actually benefits from IPv6

It helps to be realistic about why you would bother. A site that has only an A record continues to work for most visitors today, so adding an AAAA record is rarely an emergency. The benefits are practical and modest.

  • Visitors on networks that prefer IPv6 reach your server directly, without passing through address translation between the two protocols.
  • Some mobile and home networks are IPv6-first, so a native path can reduce the number of steps between the visitor and your server. How much difference this makes depends on the network and cannot be promised in advance.
  • Your site is ready for environments where IPv6 is the main protocol, which is useful for long-lived projects.
  • Some hosting and delivery platforms already provide IPv6 as a standard part of their service, so adding the record costs little effort once the server answers properly.

None of this means you must rush. The right order is to make sure the server is healthy on IPv4, then add IPv6 deliberately and test it.

Testing checklist before and after publishing

Use this short list whenever you add or change an AAAA record.

  1. Confirm the address is global and belongs to your server or platform, not to a different customer or a local network.
  2. Confirm the web server listens on it, using a direct request to the address.
  3. Confirm the firewall allows the ports you use, usually 80 and 443, over IPv6 as well as IPv4.
  4. Confirm the certificate matches the hostname when you connect over IPv6, so no browser warning appears.
  5. Add the record with a modest TTL and query it with dig example.com AAAA +short.
  6. Test the site from at least one network that supports IPv6, and compare the result with an IPv4-only test.
  7. Watch error logs for a day or two for unexpected failures that appear only over IPv6.
  8. If anything is wrong, remove the AAAA record first, fix the server, and publish it again later.

Other services that use the same name

An AAAA record on the root domain also affects services that use that name, not only the website. If the same hostname receives other connections, such as an API or a mail submission service, those must also listen correctly on IPv6. If you are unsure, use a separate hostname for services you have not tested, so that a problem on one does not spill over onto the website.

Limits and what to watch for

  • Do not publish an address you have not tested. A broken AAAA record is worse than none, because it can slow down visitors who would otherwise connect fine over IPv4.
  • Use global addresses. Link-local and private ranges do not work for public sites.
  • Keep IPv4 and IPv6 in step. When you change the server, change both records, and verify both.
  • Mind the TTL. The same caching rules apply as for A records. A change takes about the old TTL to be seen everywhere.
  • Check where you edit. Records only count at the nameservers that are authoritative for your domain.
  • Know that a CNAME replaces other data. If a name is an alias through a CNAME, it cannot also hold A or AAAA records of its own. The alias target is responsible for providing both.
  • Lawful use only. Point domains only at servers you may use, in line with your provider's rules and local law.

Summary

An AAAA record is the IPv6 version of the A record. It maps a name to a 128-bit address, and it is optional unless you want visitors to be able to reach your site over IPv6. The safest approach is to confirm that your server really answers on its IPv6 address, add AAAA records next to your A records so that the site is dual stack, and test both the DNS answer and the full connection. Keep the two record types in step whenever you move servers, and remove an AAAA record rather than leave a broken one in place. When you are ready to choose or manage a domain for your project, the domains page is the place to start.

Frequently asked questions

What is an AAAA record?

An AAAA record maps a domain name to an IPv6 address. It does for IPv6 what an A record does for IPv4, and the four A letters hint that an IPv6 address is four times longer than an IPv4 one.

Do I need an AAAA record if I already have an A record?

Not necessarily. A site with only an A record still works for visitors who can use IPv4. An AAAA record is needed only when your server has a working IPv6 address and you want visitors to be able to use it.

What happens if my AAAA record points to a broken address?

Visitors on IPv6-capable networks may try the broken address first, which can cause slow loading or errors even though IPv4 is fine. Test the IPv6 address before publishing the record, or remove the record if the server cannot answer on it.

Can a name have both A and AAAA records?

Yes. This is called dual stack. The client decides which address family to use, and most modern clients try IPv6 first and fall back to IPv4 if needed.

How do I check my AAAA record?

Run a lookup such as dig example.com AAAA or nslookup -type=AAAA example.com, then connect to the returned address to confirm the web server answers on it.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Ready to register your domain?

Search a name, compare extensions and pay once for the years you choose.

.com registration from $18.81 for the first year

Search domains

Keep reading

Domain & DNS Guides

What Is an A Record and How Do You Point a Domain to a Server?

An A record links a domain name to an IPv4 address. This guide explains how it works, how to point your domain at a server, and what to check when it does not resolve.

10 min read

Domain & DNS Guides

What Is a CNAME Record and How Do You Use It with www?

A CNAME turns one hostname into an alias for another. This guide shows how to use it for www, where it must not be used and how to test it.

10 min read

Domain & DNS Guides

What Is a Nameserver and What Happens When You Change It?

Nameservers decide where your domain's DNS records live. This guide explains delegation, what moves when you change them and how to switch without downtime.

10 min read