CNAME
Canonical Name Record
ELI5 — The Vibe Check
A CNAME is a DNS record that's like an alias or nickname. Instead of pointing to an IP address directly, it points to another domain name. So 'www.yoursite.com' can be a CNAME that just says 'same thing as yoursite.com.' Follow that name to find the real IP.
Real Talk
A CNAME record creates an alias from one domain to another. The DNS resolver follows the chain until it finds an A record with an actual IP. CNAMEs cannot coexist with other records on the same name and can't be used for root domains (use ALIAS or ANAME instead).
Show Me The Code
# DNS zone file examples
www.example.com. IN CNAME example.com.
shop.example.com. IN CNAME mystore.shopify.com.
blog.example.com. IN CNAME myblog.wordpress.com.
When You'll Hear This
"Add a CNAME for www pointing to the root domain." / "Vercel gives you a CNAME to point your custom domain at."
Related Terms
A Record
An A Record is the most basic DNS record — it just says 'this domain name = this IP address.' It's the phonebook entry itself.
DNS (Domain Name System)
DNS is the internet's phonebook. You type 'google.
Domain Name
A domain name is the human-friendly name for a website, like 'google.com' instead of '142.250.80.46'.
TTL (Time To Live)
TTL is how long DNS resolvers are allowed to remember (cache) your DNS records before checking again. A TTL of 3600 means 'remember this for 1 hour.