Understanding CNAME (Canonical Name) records and DNS aliasing
A CNAME (Canonical Name) record is a DNS record that creates an alias, pointing one domain name to another domain name. CNAME records enable domain aliasing, allowing multiple domain names to resolve to the same destination.
CNAME records point to canonical (official) domain names, which then resolve to IP addresses via A or AAAA records. CNAME records are useful for: subdomain aliasing (www.example.com → example.com), service aliasing (mail.example.com → mail.provider.com), and domain redirection.
CNAME records cannot coexist with other record types (A, MX, etc.) at the same name. Check CNAME records to verify DNS aliasing and domain redirection. Learn more about DNS.
CNAME records create aliases, allowing multiple domain names to point to the same canonical domain name.
CNAME records enable easy subdomain management by pointing subdomains to canonical domain names.
CNAME records redirect service subdomains (mail, www, ftp) to provider services or canonical domains.
CNAME records simplify DNS management by centralizing IP address management at canonical domains.
CNAME records provide flexibility in domain management, allowing easy changes to canonical domains.
CNAME records and A records serve different purposes:
Use A records for root domains and direct IP mapping. Use CNAME records for subdomains and aliasing.
Common use: www.example.com CNAME example.com - Points www subdomain to root domain.
Service aliasing: mail.example.com CNAME mail.provider.com - Points mail subdomain to provider service.
CDN integration: cdn.example.com CNAME cdn.provider.com - Points CDN subdomain to provider CDN.
Domain redirection: old-domain.com CNAME new-domain.com - Redirects old domain to new domain.
Load balancing: Multiple CNAME records can point to different canonical names for load distribution.
Use DNS lookup tools to query CNAME records and retrieve alias information for domains.
Use command-line tools (dig, nslookup) to query CNAME records: dig CNAME www.example.com
Use our domain health check to verify DNS configuration including CNAME records.
Verify CNAME records point to valid canonical domain names, canonical names resolve correctly, and CNAME records don't conflict with other record types.
Test DNS resolution to verify CNAME records resolve correctly to canonical names and ultimately to IP addresses.