HomeTechnologyNetworkingWhat is CNAME?
Technology·2 min·Updated Mar 9, 2026

What is CNAME?

Canonical Name Record

Quick Answer

A CNAME, or Canonical Name record, is a type of DNS record that maps one domain name to another. This allows multiple domain names to point to the same IP address, simplifying domain management.

Overview

A CNAME record is used in the Domain Name System (DNS) to link one domain name to another. When a user types a domain name into their browser, the DNS translates that name into an IP address, allowing the browser to locate the server hosting the website. By using a CNAME record, you can make one domain point to another, which is particularly useful for managing multiple subdomains or aliases without having to set up separate IP addresses for each one. For example, if you have a website at 'example.com' and want to create a subdomain like 'blog.example.com', you can set a CNAME record for 'blog.example.com' that points to 'example.com'. This means that when users access 'blog.example.com', they will be directed to the same server as 'example.com'. This not only simplifies management but also ensures that any changes to the main domain automatically apply to the subdomain, saving time and reducing the risk of errors. CNAME records are important in networking because they help streamline the process of handling multiple domains and subdomains. They enable businesses to create user-friendly URLs that are easy to remember and promote. Additionally, CNAME records can enhance website performance and reliability by allowing load balancing and failover strategies, which ensure that users always reach the correct server, even if some servers are down.


Frequently Asked Questions

A CNAME record points one domain to another domain, while an A record points a domain directly to an IP address. This means that CNAME records are more flexible for managing multiple domain names, while A records are used for direct connections to servers.
No, CNAME records cannot be used for the root domain (also known as the apex domain). This is because the root domain needs to have an A record pointing directly to an IP address, while CNAME records are meant for subdomains.
Changes to CNAME records can take some time to propagate throughout the internet, usually ranging from a few minutes to 48 hours. The exact duration depends on the Time to Live (TTL) settings of the DNS records, which dictate how long the information is cached by DNS servers.