WebFora.io

Glossary

What is CNAME record

Also: canonical name, alias record, CNAME

A CNAME record makes one name an alias of another — e.g. www.yourdomain.com → yourdomain.com, or shop.yourdomain.com → your shop platform's address. Used for www and subdomains, not for the bare domain.

A CNAME (canonical name) record says «this name is just another name for that one». Instead of an IP you enter a hostname: www → graincoffee.com, booking → yourname.bookingapp.com. If the target later changes its IP, you don't have to touch anything — like a forwarding note that says «see the main entry». Classic DNS doesn't allow a CNAME on the bare domain (@) next to email records, which is why hosts ask for an A recordAn A record is the DNS entry that says «this name lives at this IPv4 address». It's how a domain is pointed at a server when you connect by IP instead of changing nameservers.→ on @ and a CNAME on wwwwww is a traditional subdomain (www.yourdomain.com) that today is optional. Both www and the bare domain should open your site, with one redirecting to the other.→; some providers offer «CNAME flattening» or ALIAS/ANAME records to get around this.

  • Use for www, SubdomainA subdomain is a name in front of your domain: shop.graincoffee.com or www.graincoffee.com. It's free, created in DNS, and can point to a different site or service than the main domain.→, and services that give you a hostname to point to (website builders, booking tools, email-marketing landing pages).
  • A name with a CNAME can't have any other record — delete the old A record for www first.
  • Target ends with your provider's domain, never with http://.

Where it comes up

Related terms

Order · €39Audit