☰
DNS & Domains

DNS Records Explained: A vs AAAA vs CNAME

DNS Records Explained: A vs AAAA vs CNAME

A vs AAAA vs CNAME becomes easier to understand when you connect each term to one job in the network. Internet addressing can look complicated because several layers operate at once, but most everyday questions become manageable when you separate local addressing, routing, name resolution, and security.

A vs AAAA vs CNAME: what each record contains

An A record stores an IPv4 address, an AAAA record stores an IPv6 address, and a CNAME makes one hostname an alias of another hostname instead of storing an IP address directly.

Identify the exact setting, address, or record involved and write what job it performs before you consider changing it.

When to use an A record

Website owners commonly use A records for hosts served from IPv4-enabled infrastructure.

Separate observation from assumption here.

When to use an AAAA record

A domain can publish both A and AAAA records when the service supports both protocols.

When a CNAME is useful

A CNAME is useful when one hostname should follow another hostname, especially when a provider controls the final target and may change its IP addresses.

Why CNAME is not an HTTP redirect

DNS aliases change name resolution. They do not return a 301 or 302 response to the browser. Web redirects happen later at the application or web-server layer.

Why DNS changes can appear slowly

DNS answers can be cached according to TTL and resolver behavior. Some users may continue seeing the previous value until their cached answer expires.

Why conflicting DNS records cause trouble

Publishing records that do not match the provider or hosting design can create unpredictable results. Follow the platform instructions and understand whether it expects A, AAAA, CNAME, or another type.

How to change DNS records safely

Save the old values, change only the necessary record, verify the target, and test resolution from more than one network or resolver if the result is unclear.

TTL controls how long records may be reused

Time-to-live tells resolvers how long they may cache an answer before asking again. Lowering TTL before a planned move can shorten how long old answers survive.

Nameserver delegation is a larger change than one record

Changing an A record modifies one record. Changing the authoritative nameservers can move control of the whole DNS zone, so every required record must exist at the new provider.

A practical networking example

Instead of changing random settings, the user identifies the local IP information, checks the gateway, tests whether an Internet address is reachable, and then checks DNS.

Related guides on this site

Read how DNS connects names to IP addresses for one related concept, and use IPv4 and IPv6 differences when you need a second piece of the same networking picture.

Quick checklist

  • Key purpose of A vs AAAA vs CNAME identified
  • Local and public context separated
  • Current values saved before changes
  • DNS and routing roles kept separate
  • Security assumptions checked
  • One practical test completed

The goal is to understand A vs AAAA vs CNAME well enough to explain what each value does and to know which part of the network to check next.

Frequently Asked Questions

Do I need advanced networking knowledge to understand A vs AAAA vs CNAME?

No.

Usually no. Devices need values that fit the actual network, and copying a manual address can create conflicts.

Does an IP address identify a person?

Not reliably by itself.

No.

How to review your understanding of A vs AAAA vs CNAME

Open the relevant settings, DNS view, or router page and identify the values without changing them.

A and AAAA can coexist on the same hostname

Publishing both record types allows clients to use IPv4 or IPv6. The existence of an AAAA record should match real IPv6 reachability; publishing an unusable address can create connection problems.

Write the current address, record, or route exactly as it appears, then explain what would change if the value were wrong.

CNAME changes where resolution continues

A CNAME tells the resolver to look up another hostname. The final target can then have A, AAAA, or additional records managed by the destination provider.

Root-domain CNAME behavior depends on the DNS provider

Traditional DNS rules restrict CNAME use at a zone apex because other required records also exist there. Some providers offer flattening or similar features, but users should follow the provider-specific implementation.

DNS records should match the hosting architecture

A direct server may need A and AAAA records, while a CDN, SaaS platform, or verification service may require CNAME or TXT values. Copy only the record type the service instructs you to use.

Testing should include authoritative and recursive views

When a change seems inconsistent, compare the authoritative record with what public recursive resolvers return. The difference can reveal whether the zone is correct but caches are still old.

Sources

Last checked: November 15, 2026. Rules, fees and requirements can change, so confirm details with the official source before you act.

More from DNS & Domains

View category →