GlossarySpanish version

Support article

CNAME Record

A CNAME Record (Canonical Name Record) is a type of record in the Domain Name System (DNS) that is used to make a domain name an...

Published: 30/06/2026Updated: 30/06/2026

A CNAME Record (Canonical Name Record) is a type of record in the Domain Name System (DNS) that is used to make a domain name an alias of another domain name. This means that the CNAME Record points to another domain name instead of directly to an IP address, as an A or AAAA record would.

Features and function of the CNAME Record:

  • Domain alias: A CNAME Record allows a subdomain to be an alias of another domain name. For example, you can have a subdomain like www.ejemplo.com that points to ejemplo.com.
  • Ease of management: By using a CNAME, changes to IP addresses only need to be updated in one place. If the domain name the CNAME points to changes its IP address, you don’t need to update the CNAMEs that point to that name.
  • Not used for root domain names: CNAME records cannot be used for top-level domain names (the main domain part like ejemplo.com); they are only applicable to subdomains.

Example of a CNAME Record configuration:

Imagine you want www.ejemplo.com to point to ejemplo.com. Your CNAME record might look like this in your DNS zone file:

www.ejemplo.com. IN CNAME ejemplo.com.

In this example:

  • www.ejemplo.com. is the subdomain you want to set up as an alias.
  • IN indicates that it is an Internet record.
  • CNAME designates that the record type is Canonical Name.
  • ejemplo.com. is the domain name that www.ejemplo.com will point to.

Common uses of CNAME records:

  1. Subdomains: CNAMEs are ideal for directing multiple subdomains to a main domain where the website is hosted. For example, pointing www.ejemplo.com, blog.ejemplo.com, and store.ejemplo.com to ejemplo.com.
  2. Third-party services: They are often used to connect domain names with external services, such as email platforms, e-commerce platforms, or content hosting services.

Limitations of CNAME records:

  • Cannot coexist with other records: A CNAME for a subdomain cannot coexist with any other type of DNS record for that same subdomain.
  • Not for MX or NS records: You should not use a CNAME on domain names that need MX (Mail Exchange) or NS (Name Server) records, as it can cause DNS resolution problems.

CNAME records are powerful tools within the DNS system, providing flexibility and simplification in the management of domain names and address resolution. However, they should be used with caution and an understanding of their limitations to avoid complications in DNS configuration.