Skip to content
All resources

Glossary3 min read

What is a CNAME record? A plain-English explanation

A CNAME record points one domain name at another. What it does, how it differs from an A record, and why our AI site builder asks for A records to connect your domain.

By the Purple Rocket team

A CNAME record is a line in your domain's DNS settings that says: this name is an alias, go and look up that other name instead. CNAME is short for canonical name, which simply means the real, official name that the alias stands in for.

If DNS is the internet's address book, most entries give a street address. A CNAME entry instead says see the entry for someone else. It is like telling a courier that parcels for the shop should go wherever the head office is, without writing the head office's address down twice.

A CNAME record next to an A record

  • An A record points a name straight to an IP address, the number of a server.
  • A CNAME record points a name to another name, which then has its own record.
  • If the server's address changes, an A record has to be edited; a CNAME follows the other name automatically.
  • A name that has a CNAME cannot have other records of its own, such as email records.

That last rule is why there is a catch. The bare domain, sharmabakery.in without anything in front, almost always needs other records too, at least for email. So most DNS providers do not allow a CNAME on the bare domain at all. CNAME records are mainly used on subdomains such as www.sharmabakery.in or shop.sharmabakery.in.

Where you will meet CNAME records

  • Pointing www to the bare domain or to a hosting service
  • Connecting a subdomain to an outside tool, such as a booking system or a help desk
  • Proving domain ownership to an email or marketing service, which may give you a CNAME to add
  • Email security settings from your email provider, alongside TXT records

How to add one, if a service asks you to

  1. Log in at the company that manages your domain and open its DNS settings.
  2. Choose to add a record and pick CNAME as the type.
  3. In the name or host box, enter only the subdomain part, for example www or book, unless the service says otherwise.
  4. In the value or target box, paste the name the service gave you, exactly as written.
  5. Save, then wait for the change to spread before testing it.

CNAME records when you build with an AI site builder

To connect your domain, AI Site Builder asks you to add A records, not a CNAME, and the Domains page in your dashboard shows exactly which: one for the bare domain, often written as @, and one for www, both pointing to our server's IP address. Because they are A records, they work on the bare domain too, so the rule above does not get in your way and you need no forwarding. Once your domain points to us, SSL is free and installed automatically, and the www version sends Visitors to your main address.

If a guide elsewhere gives different instructions for your Website, follow the ones under Domains in your dashboard instead, and delete any other A, AAAA or CNAME record for the same names. The full walk-through is in how to connect a custom domain, and what is DNS explains the other record types you will see on the same screen.

Questions people ask

Should I use a CNAME or an A record for my Website?

Use whichever your Website platform asks for. For AI Site Builder, that is the A records the Domains page in your dashboard shows: one for your bare domain and one for www, both pointing to our server's IP address. A records work on the bare domain, and SSL is installed automatically.

Can I put a CNAME on my root domain?

Most DNS providers do not allow it, because the root domain also needs records such as MX for email, and a name with a CNAME cannot hold other records. Some providers offer a workaround under another name. If yours does not, put the CNAME on www and use your registrar's forwarding to send the plain address to the www version. With AI Site Builder this does not come up, because the Domains page asks for A records.

Is it safe to delete CNAME records I do not recognise?

No. They often belong to your email, email security or another service you use. Take a screenshot and ask your registrar or provider before removing anything.

Build your Website with AI

Describe your business in a sentence and try it free for 7 days.

Start free trial

Read next

Glossary

What is DNS? A plain-English explanation

DNS is the internet's address book: it turns your domain into a server address. How it works, the records you will meet, and DNS with an AI site builder.

Read