Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

AAAA record: the IPv6 version of an A record

An AAAA record (pronounced "quad-A") maps a hostname to a 128-bit IPv6 address, the same job an A record does for IPv4. It uses DNS type code 28 and is defined in RFC 3596; a name can carry both record types at once.

The short answer
  • AAAA holds one IPv6 address, for example 2001:db8::10. The name has four As because IPv6 is four times longer.
  • Only add an AAAA record if the server really answers on that IPv6 address.
  • Dual-stack setups publish both A and AAAA on the same name.
Try the dns lookupFree, live, no signup

How does AAAA compare with A?

A versus AAAA
AAAAA
Address familyIPv4IPv6
Address size32 bits128 bits
DNS type code128
Example value192.0.2.102001:db8::10
Reverse lookup zonein-addr.arpaip6.arpa

Type code and format come from RFC 3596 and RFC 1035.

What does an AAAA record look like?

Zone file syntax (2001:db8::/32 is reserved for documentation)
example.com.      3600  IN  A     192.0.2.10
example.com.      3600  IN  AAAA  2001:db8::10
www.example.com.  3600  IN  AAAA  2001:db8::10

How do you add an AAAA record safely?

  1. 01

    Confirm the server has IPv6

    Get the public IPv6 address from your host and test that the web server listens on it, for example with curl -6 https://example.com.

  2. 02

    Create the record

    Choose type AAAA, use the same name as your A record (@ or www) and paste the IPv6 address. Shortened forms with :: are accepted by most panels.

  3. 03

    Keep the A record

    Visitors on IPv4-only networks still need the A record. Do not delete it.

  4. 04

    Verify

    Run nslookup -type=AAAA example.com 1.1.1.1 (Windows syntax, also works on macOS and Linux) and confirm the address.

What usually goes wrong with AAAA records?

Server does not listen on IPv6

The record resolves but connections to that address fail. Visitors on IPv6 networks see timeouts or slow fallbacks.

Certificate or firewall mismatch

The IPv6 address reaches a different virtual host or a firewall rule only opened for IPv4.

Stale AAAA after a move

You updated the A record but forgot the AAAA, so IPv6 visitors still reach the old server.

How do you test IPv6 before and after publishing the record?

  • Confirm the server answers on the IPv6 address directly, for example with curl -g -6 "https://[2001:db8::10]/" and a Host header or your own test hostname
  • Check that the web server config has a listen directive for IPv6 as well as IPv4
  • Check that the firewall or cloud security group allows ports 80 and 443 over IPv6
  • Run nslookup -type=AAAA on the name through two public resolvers and compare
  • Load the site from an IPv6-capable network, or a test site that checks IPv6 reachability
  • Leave the A record in place so IPv4-only visitors keep working

How do browsers choose between IPv4 and IPv6?

Both records are queried

A client on a dual-stack network normally looks up A and AAAA records for the same name.

Fallback on failure

If the IPv6 connection fails, clients typically fall back to IPv4, which can add a visible delay when AAAA is misconfigured.

Test both paths

Verify the site over IPv4 and IPv6 separately after every server move.

Common questions

What is an AAAA record used for?

An AAAA record tells resolvers which IPv6 address a hostname uses. Browsers on IPv6-capable networks ask for it alongside the A record and connect to whichever address works.

Do I need an AAAA record?

No. A site works with only an A record. Add an AAAA record when your host provides a working IPv6 address and you want IPv6 visitors to connect natively.

Can AAAA and A records point to different servers?

Yes, technically, but it is a common source of bugs because visitors reach different servers depending on their network. Keep both pointing at servers with identical content and configuration.

How do I look up an AAAA record?

Use the DNS lookup tool, or run nslookup -type=AAAA example.com, or dig AAAA example.com +short. An empty answer means the name has no AAAA record.

How do I write an IPv6 address in an AAAA record?

Use the standard colon-separated hexadecimal form, such as 2001:db8::10. Leading zeros in a group can be dropped and one run of all-zero groups can be shortened to a double colon. Most panels accept the compressed form.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.