Networking
DNS A vs AAAA vs CNAME Records: What Is the Difference?
Compare DNS A, AAAA, and CNAME records, understand when each is used, and troubleshoot common domain, subdomain, CDN, and hosting configuration mistakes.
In this article
DNS A vs AAAA vs CNAME Records: What Is the Difference?
A, AAAA, and CNAME records are common when connecting domains to websites, APIs, CDNs, and hosting platforms.
Duck Cloud's DNS Lookup can inspect public A, AAAA, CNAME, MX, TXT, and NS records.
A record
An A record maps a hostname to an IPv4 address.
example.com → 203.0.113.10AAAA record
An AAAA record maps a hostname to an IPv6 address.
example.com → 2001:db8::10A hostname can have both A and AAAA records.
CNAME record
A CNAME aliases one hostname to another hostname.
www.example.com → hosting-provider.example.netA CNAME target is a hostname, not an IP address.
Apex domains
Traditional DNS places restrictions on CNAME records at the zone apex. Some DNS providers offer flattening or alias-like behavior. Follow your provider's documentation.
www vs apex
A common setup uses an address or provider alias at the apex and a CNAME for www, then redirects one hostname to the preferred canonical hostname.
Use Redirect Checker to verify the redirect chain.
Common mistakes
- An old A record still points to a previous server.
- AAAA points to a broken IPv6 destination.
- A CNAME contains the wrong provider hostname.
- DNS looks correct but CDN/origin routing is wrong.
- Cached DNS still returns an old value.
Troubleshooting workflow
- Run DNS Lookup.
- Inspect A, AAAA, and CNAME.
- Confirm expected destinations.
- Test apex and
www. - Inspect redirects.
- Check Website Status Checker.
A maps to IPv4, AAAA maps to IPv6, and CNAME maps to another hostname.