A CNAME record in GoDaddy is a type of DNS record that maps one domain name to another, allowing you to redirect traffic from a subdomain to another domain. This is useful for pointing subdomains like blog.yoursite.com to a different server or service.
CNAME stands for "Canonical Name." When someone visits a domain with a CNAME record, their browser follows the redirection to the target domain. For example, if you set a CNAME record for blog.yoursite.com to point to yourblog.wordpress.com, visitors to blog.yoursite.com will be directed to yourblog.wordpress.com.
DNS records manage how domains resolve to IP addresses. The most common types include:
CNAME records are commonly used for subdomains. For instance, if you host your website on a platform like WordPress or Wix, you might use a CNAME record to point a subdomain to your hosted site. This avoids the need to change DNS settings whenever your IP address changes.
Another common use is for SSL certificates. Services like Let's Encrypt require CNAME records to validate domain ownership before issuing certificates.
Many people confuse CNAME records with A records. While both map domains to other addresses, A records point directly to an IP address, whereas CNAME records point to another domain name. This difference is important because CNAME records cannot coexist with other records for the same subdomain.
For example, you cannot have both a CNAME record and an A record for blog.yoursite.com. You must choose one or the other.
To create a CNAME record in GoDaddy, follow these steps:
Changes may take up to 48 hours to propagate globally, though they often update within minutes.
I once set up a CNAME record to point a client's subdomain to their WordPress site. The process was straightforward, and the redirection worked smoothly after the DNS changes propagated.