Glossary
CNAME record
Definition
CNAME record: A DNS record (type 5, RFC 1035) that makes its name an alias of another name, the canonical name. A lookup for the alias restarts at the target. A name with a CNAME may hold no other records.
Also known ascanonical name recordCNAMEDNS alias
In short
A CNAME record is a DNS record (type 5) that makes one name an alias of another, so a lookup for the alias restarts at the target name. Hosted services use it so they can change their servers without you editing DNS. The catch, from RFC 1034: a name with a CNAME can hold no other records, so it can't sit at the root of a domain or share a name with TXT or MX records.
Key takeaways
- A CNAME says "this name is an alias; look up that name instead."
- A name with a CNAME can't hold any other record, including TXT and MX records.
- The root of a domain already holds SOA and NS records, so a CNAME there breaks the rules.
- An MX record must point to a real host name, never to an alias.
- Connecting a domain to Foxcolab Mail needs MX and TXT records only, no CNAME.
Last reviewed 30 November 2026
A CNAME record is a DNS record that makes one name an alias of another. When a resolver looks up www.example.com and finds a CNAME pointing to shop.example-host.net, it repeats the lookup at that name and uses the records it finds there. RFC 1035 lists CNAME as type 5, "the canonical name for an alias." The name on the left is the alias; the name on the right is the canonical name.
How it resolves#
www.example.com. 3600 IN CNAME shop.example-host.net.
shop.example-host.net. 300 IN A 192.0.2.10A browser asking for www.example.com gets both lines back. Per RFC 1034, section 3.6.2, the name server "includes the CNAME record in the response and restarts the query at the domain name specified in the data field." The host can move its servers without you touching your DNS, which is why hosted stores and help centers ask for one.
The rule people trip over#
RFC 1034 says: "If a CNAME RR is present at a node, no other data should be present." RFC 2181 repeats that an alias "may have no other data." Three mistakes come up again and again:
- A CNAME at the root of the domain.
example.comalready holds SOA and NS records, and usually MX and TXT records too. A CNAME there breaks the rule, and most DNS hosts refuse it. - A CNAME and a TXT record on one name. If
_dmarc.example.comis a CNAME, you can't also publish your own DMARC TXT record there. - An MX record that points to an alias. RFC 2181, section 10.3, says the name in an MX record "must not be an alias." Point MX records at a host name that has its own address records.
Related terms#
A CNAME is one of several DNS record types: A records hold addresses, MX records route mail, and TXT records carry SPF, DKIM and DMARC policies.
In Foxcolab#
Connecting your domain to Foxcolab Mail needs no CNAME at all. The Domains tab lists one MX record and four TXT records: Domain Ownership and SPF Policy at @, DKIM Signature at foxcolab._domainkey, and DMARC Policy at _dmarc. Before you add them, check that foxcolab._domainkey and _dmarc don't carry a leftover CNAME from an earlier service, since a CNAME would block the TXT record. Then select Verify DNS; anything Foxcolab finds instead appears under Currently detected:. Once your domain is live, mail from one Foxcolab user to another is end-to-end encrypted.
Follow Add a custom domain to your organization for every step. Custom domains start on the Pro plan; see plans.
Keep exploring
Related terms
- DNS (Domain Name System)DNS is the internet's directory. It turns a name like example.com into the records computers need, from a website's address to the servers that accept a domain's mail.
- MX recordAn MX record is the DNS entry that names the servers accepting email for a domain and sets the order in which sending servers try them.
- DNS TXT recordA TXT record is the DNS record that holds free-form text. Email authentication, DKIM keys and domain-verification tokens all live in TXT records.
- DKIM (DomainKeys Identified Mail)DKIM adds a cryptographic signature to outgoing email so receivers can confirm the message came from your domain and wasn't changed on the way.
- DMARCDMARC ties SPF and DKIM to the From address people see, tells receivers what to do with mail that fails, and sends you reports on who's sending as your domain.
Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.