HomeGuidesAboutToolsBuy DomainsSEOContact
Transfers and DNS6 min read848 words

A Record vs CNAME: What Is the Difference

Learn the practical difference between A records and CNAME records, when to use each one, and common mistakes to avoid.

Quick scan

Primary keyword
A record vs CNAME: what is the difference
Guide cluster
Transfers and DNS

A records and CNAME records both help DNS point a name to a destination, but they do it in different ways.

Use These Tools With This Guide

Move from explanation to action with the matching DomainCheck.co.uk tools for this topic.

Use with this guide

Domain Checker

Check live resolution before and after a DNS or transfer change.

Open tool
Use with this guide

UK Domain TAG Checker

Useful when a UK domain transfer depends on TAG or registrar handling.

Open tool
Use with this guide

Complete TLD List

Check TLD context when transfer and DNS behaviour can vary by namespace.

Open tool

Why This Guide Exists

Many DNS issues start with a simple choice between an A record and a CNAME. People searching for this topic usually want to know which one to use for a website, what the technical difference is, and why some setups allow one but not the other. That is a different intent from general DNS propagation or email records, so it deserves its own focused article.

Guide

Overview

A records and CNAME records both help DNS point a name to a destination, but they do it in different ways.

An A record points a hostname directly to an IPv4 address. A CNAME record points one hostname to another hostname. That sounds small, but it changes how the DNS lookup works and where each record can be used.

What an A record does

An A record is the direct mapping many websites use. If someone types your domain into a browser, the A record can tell DNS which IP address should receive the request.

This is useful when:

  • your website has a fixed server IP
  • you want the root domain to point directly to hosting
  • your DNS provider or hosting platform expects direct IP mapping

Because it points to an IP address, an A record is straightforward. If the IP changes, you update the record to the new address.

What a CNAME record does

A CNAME record is an alias. Instead of pointing to an IP address, it points one hostname to another hostname.

This is useful when:

  • a third-party platform gives you a hostname target
  • you want a subdomain such as www to follow another name
  • your provider prefers alias-based setup rather than hard-coded IPs

For example, a www hostname might CNAME to the root domain or to a platform-specific hostname. That way, if the target changes behind the scenes, you may only need to update the canonical destination.

The biggest practical difference

The simplest way to remember it is:

  • A record goes to an IP address.
  • CNAME goes to another name.

That distinction matters because DNS still has to resolve the final destination. A CNAME adds an extra step in the lookup chain, while an A record is direct.

Quick comparison

TopicA recordCNAME
Points toAn IP addressAnother hostname
Best fitDirect hosting and apex domainsAliases and managed subdomains
Root domainCommonUsually provider-specific or not allowed
Lookup pathDirectOne extra resolution step

Root domain versus subdomain

This is where people usually get tripped up.

The root domain, sometimes called the apex domain, is the bare domain without a prefix. The www version is a subdomain.

In many DNS setups, a CNAME cannot be used at the root domain because the root also has to carry other records, such as NS and SOA. Some DNS providers support special alias-like features that behave similarly to a CNAME at the apex, but that is provider-specific rather than universal.

So in practice:

  • the root domain often uses an A record or provider-specific alias feature
  • www often uses a CNAME

That is a common and sensible pattern, but not the only one.

Choosing in practice

Use an A record when

You know the IP address, the host wants direct mapping, or you are configuring the apex domain.

Use a CNAME when

The platform gives you a hostname target or the hostname should follow a canonical destination.

Double-check the root when

The provider’s docs mention aliasing, flattening, or special apex support.

Keep it simple when

One hostname should have one clear DNS job. Mixing instructions creates avoidable errors.

When to use each one

Use an A record if:

  • you know the server IP
  • you are mapping the root domain
  • your host asks specifically for an A record

Use a CNAME if:

  • the provider gives you a hostname instead of an IP
  • you are setting up www or another subdomain
  • you want to point a subdomain to a managed service

If your provider gives exact instructions, follow those instructions rather than forcing a generic pattern. DNS providers and platforms vary.

Common setup traps

The most avoidable mistake

The most common mistake is configuring the root domain and www as if they were the same hostname. They are not. If one works and the other does not, the record types may not match the provider’s expectations.

Common mistakes

The most common mistakes are:

  • trying to use a CNAME where the provider requires an A record
  • setting both an A record and a CNAME on the same hostname
  • forgetting that www and the root domain are different names
  • pointing the subdomain to the wrong target hostname
  • changing DNS without updating the hosting platform

If both an A record and a CNAME exist for the same hostname, the result may be invalid or ignored depending on the DNS system. As a rule, keep one clear purpose per hostname.

What about IPv6?

If a service uses IPv6, you may also see AAAA records. These are similar in spirit to A records, but they point to an IPv6 address instead of IPv4. They are not the same as CNAMEs, and they do not replace the direct-versus-alias decision.

How this affects DNS changes

When you update an A record, the hostname can start resolving to a new IP as the change propagates through caches.

When you update a CNAME, the alias can begin pointing to a new destination hostname. That new target may itself have its own DNS records and caching behaviour.

That means a CNAME-based setup can sometimes involve an extra layer of waiting or troubleshooting, because the final answer depends on the alias target as well as the alias itself.

Which one is better for SEO?

Neither record is better for SEO on its own. Search engines care about the site’s accessibility, stability, and implementation, not whether you used an A record or a CNAME. The right choice is the one that matches the technical requirements of your hosting or platform.

A simple decision guide

If you are unsure, ask:

  • Does the provider give me an IP address? Use an A record.
  • Does the provider give me a hostname? Use a CNAME.
  • Is this the root domain? Check whether the provider supports CNAME-like aliasing there.
  • Is this for www or another subdomain? A CNAME is often appropriate.

That is usually enough to choose correctly.

FAQ

Sometimes, depending on the DNS provider, but not universally. Many setups use an A record or an alias feature instead.

Next Actions

Check your current A and CNAME records with DomainCheck.co.uk before publishing a change.
Compare the apex domain and www record so you do not miss a mismatch.
Use the related DNS guides if you are moving a site or setting up a new host.
Try Domain Checker