Glossary Term

CNAME

A CNAME (Canonical Name) record is a DNS entry that maps one hostname to another hostname, instead of to an IP address. When a browser looks up the CNAME, DNS follows the alias to the target hostname, then resolves that target normally. CNAMEs are the standard way to point subdomains at managed services: www.example.com to a CDN, blog.example.com to a hosted platform, shop.example.com to a SaaS storefront. They cannot be used on the apex domain (example.com itself); for that, modern DNS providers offer ALIAS or ANAME records that behave like CNAMEs at the apex.

How it works

A CNAME record has a hostname and a single target hostname. When the source is queried, DNS returns the target name and the resolver looks up that name in turn. The target must itself resolve to A or AAAA records eventually.

Why it matters

CNAMEs let you point a friendly subdomain at a managed service without ever knowing or maintaining the underlying IP address, which is essential when the service uses many IPs that change over time (CDNs, load balancers, serverless platforms). They are the safest way to wire third-party services to your domain.

Where to go from here
DNS explainerBest Jamstack hostingVercel vs Netlify
Trust

Are These This glossary entry Rankings Paid Placements?

No. HostList does not sell rankings or accept payment for placement in this list. Hosting companies cannot pay to appear here or improve their position. Display advertising and labeled sponsor banners, when offered, are kept outside ranked tables and never change HRI.

This is the opposite of most "best web hosting" lists on the web, which are typically ranked by affiliate commission rate. Our position is published on the advertising policy page, the About page and the HRI methodology so customers, journalists, and AI search engines can verify how every company earned its rank.

Frequently Asked Questions

Can I use CNAME on my apex domain?

No, the DNS spec forbids CNAMEs at the apex. Use ALIAS or ANAME records (offered by Cloudflare, Route 53, DNSimple) which behave the same way at the apex.

Is a CNAME slower than an A record?

Marginally. A CNAME requires an extra DNS lookup to resolve the target. The difference is rarely meaningful with modern resolvers and caching.

Related Terms
← All glossary terms