---
title: "CNAME record"
description: "A CNAME record is an alias pointing one domain name to another canonical name. Learn how it works, its limitations and its typical uses."
url: "https://nodea.io/en/glossary/cname-record"
lang: "en"
updated: "2026-07-13"
---

# CNAME record

> A CNAME (Canonical Name) record is a DNS entry that creates an alias — pointing one domain name to another canonical name rather than directly to an IP address.

A **CNAME record** (*Canonical Name*) is a [DNS](https://nodea.io/en/glossary/dns) entry that creates an alias: it points one domain name to another *canonical* name rather than directly to an IP address. This lets many names "inherit" the configuration of a single target domain.

## How a CNAME record works

When a resolver encounters a CNAME, it does not stop there — it follows to the named canonical name and reads the actual [A record](https://nodea.io/en/glossary/a-record) or AAAA there. For example, *www.example.com* can be an alias for *example.com*, which in turn resolves to the server's IP. This type comes with important limitations:

- a CNAME record cannot coexist with other records for the same name (such as MX or TXT),
- it is not used on the root (apex) domain — there you use an A record or an ALIAS feature,
- alias chains lengthen resolution time, so they are best avoided.

## The CNAME record in practice

CNAME is convenient when the target address may change and you want to manage it in one place. Typical uses include pointing a [subdomain](https://nodea.io/en/glossary/subdomain) at an external service — a panel, a SaaS store or a [CDN](https://nodea.io/en/glossary/cdn) — or verifying domain ownership as required by providers. If the target service changes its IP address, it only has to update its own A record; all CNAME aliases automatically start pointing to the new location, with no action on your side.

### Can I set a CNAME record on the root domain?

Per the standard, a CNAME record should not be placed on the root (apex) domain, because it conflicts with the mandatory SOA and NS records. Many DNS providers work around this with an ALIAS feature or CNAME flattening, which resolves the target domain's IP at the server level.

## Related

- [A record](https://nodea.io/en/glossary/a-record)
- [DNS](https://nodea.io/en/glossary/dns)
- [Subdomain](https://nodea.io/en/glossary/subdomain)
- [CDN (Content Delivery Network)](https://nodea.io/en/glossary/cdn)
- [TTL](https://nodea.io/en/glossary/ttl)

---

Languages: [pl](https://nodea.pl/pl/slownik-pojec/rekord-cname.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
