Glossary
CNAME Record
A CNAME record is a DNS alias that points one hostname to another, so the target resolves the destination name instead of an IP address.
A CNAME record (Canonical Name) creates an alias: it points one hostname at another hostname rather than directly at an IP. The resolver then follows the chain to find the final a-record or aaaa-record.
Example
www.example.com. 3600 IN CNAME example.com.
Here www is an alias for the apex example.com.
Rules and gotchas
- A name with a CNAME cannot carry other records (no separate
mx-recordon the same name). - Classic DNS forbids a CNAME at the zone apex (
example.comitself); providers offer "CNAME flattening" orALIAS/ANAMErecords to work around this.
Why it matters for hosting
CNAMEs are how you point a custom domain at a cdn, a managed platform, or a SaaS endpoint without hard-coding its IP — the provider can change the underlying ip-address freely and your domain keeps working.
See also
