Keep your bounce rate under 3%. Verify your email list with catch-all email verifier Giggal.ai

Glossary · DNS records

What is a CNAME record?

The short answer

A CNAME record is a DNS record that makes one name point to another name. It works like a nickname: when someone looks up the first name, DNS tells them to use the second name instead. For example, www.example.com can be a CNAME that points to example.com.

Also called: canonical name record, DNS alias, CNAME

By · Updated · 3 min read

CNAME record: what to remember

  • CNAME stands for canonical name. A CNAME record says: this name is another name for that name.
  • A CNAME record points to a name. An A record points to a number (an IP address).
  • A name that has a CNAME record cannot have other records, and the main domain itself normally cannot be a CNAME.
  • In email, CNAME records are used for custom tracking domains and for DKIM in Microsoft 365.

What does CNAME record mean?

CNAME stands for canonical name, which simply means “the real name”. A CNAME record tells the internet that one name is just another name for something else.

Think of a nickname. Your friends call you “Bobby”, but your passport says “Robert Smith”. If someone needs to look you up officially, “Bobby” has to be turned into “Robert Smith” first. A CNAME record does that for domain names.

So when a browser or mail server looks up a name that has a CNAME record, DNS replies: “that is a nickname, look up this other name instead.”

How a CNAME record works

Say www.example.com has a CNAME record that points to example.com.

  1. Someone types www.example.com.
  2. Their computer asks DNS: where is www.example.com?
  3. DNS answers: that is another name for example.com.
  4. The computer asks again, this time about example.com, and gets the server’s address.

The useful part is step 4. If the server’s address ever changes, you update it in one place and every nickname follows automatically.

CNAME record examples

A CNAME record has a name, a type and the target it points to.

Name Type Points to What it is for
www CNAME example.com The www version of a website
track CNAME a name from your cold email tool A custom tracking domain
selector1._domainkey CNAME a name from Microsoft DKIM for Microsoft 365
autodiscover CNAME autodiscover.outlook.com Helps Outlook find your mailbox

In each example, the CNAME record lets another company keep the technical details up to date for you. You only point at the name they gave you.

CNAME record vs A record

CNAME record A record
Points to Another name An IP address (a number)
Example www → example.com example.com → 203.0.113.10
Use it when A provider gives you a name You know the server’s number
Allowed on the main domain? Normally no Yes

An easy way to remember it: an A record is an address, a CNAME record is a name.

How CNAME records are used in cold email

You will meet CNAME records in three places when you set up cold email infrastructure.

1. A custom tracking domain. Cold email tools can count opens and clicks. To do that they rewrite the links in your email. By default those links use the tool’s own shared domain, which thousands of other senders also use. With a CNAME record such as track.yourdomain.com, the links use your domain instead. This keeps your emails from being judged by what strangers send.

2. DKIM in Microsoft 365. Microsoft asks you to add two CNAME records for DKIM, called selector1 and selector2. They point to DKIM keys that Microsoft looks after. You can read more on the DKIM selector page.

3. Mailbox settings. A CNAME record called autodiscover helps Outlook work out your mailbox settings by itself.

PureMail adds the DNS records your inboxes need, including the Microsoft 365 DKIM CNAME records, when our team sets up your Microsoft 365 inboxes.

CNAME record rules and common mistakes

  • One CNAME record means no other records. A name that has a CNAME record cannot also have an MX record or a TXT record. This is the most common CNAME mistake.
  • Do not put a CNAME on the main domain. Your main domain needs its MX and TXT records for email, so a CNAME there would break email.
  • Do not point an MX record at a CNAME. An MX record should point to a real server name, not to a nickname.
  • Copy the target exactly. One missing letter or an extra dot and the CNAME record points nowhere.
  • Give it time. A new CNAME record can take from a few minutes to a day to work everywhere.

FAQ

CNAME record: questions people ask.

01

What does CNAME stand for?

CNAME stands for canonical name. Canonical means the real or official one. A CNAME record says that a name is only a nickname and tells you the real name to look up instead.

02

What is the difference between a CNAME record and an A record?

An A record points a name to an IP address, which is the number of a server. A CNAME record points a name to another name. Use an A record when you know the server's number, and a CNAME record when another company gives you a name to point at.

03

What is an example of a CNAME record?

A common CNAME record example is www.example.com pointing to example.com. Another is track.example.com pointing to a name given by your cold email tool, so the links in your emails use your own domain.

04

Can I use a CNAME record on my main domain?

Normally no. The main domain, such as example.com with nothing in front, has to hold other records, and a name with a CNAME record is not allowed to hold any others. Use a CNAME on a subdomain such as www or track. Some DNS companies offer a workaround, often called CNAME flattening.

05

How is a CNAME record used in email?

Email uses CNAME records in a few places: for a custom tracking domain in cold email tools, for the two DKIM records in Microsoft 365, and for settings that help Outlook find your mailbox.

Still have a question? support@puremail.ai · contact us

Your next reply is one order away.

Google Workspace and Microsoft 365 inboxes from $2.90 a month, set up and connected to your sequencer today.