Look up a CNAME record
Check what DNS returns right now:
Format and example
www.example.com. 3600 IN CNAME cdn.example.net.
- Name: The alias. This name may hold no other record type.
- TTL: Seconds a resolver may cache the alias.
- Value: The canonical hostname, never an IP address. It needs its own A or AAAA record.
Common mistakes
- Placing a CNAME on the bare domain (
example.com). The root always holds SOA and NS records, and a CNAME cannot share a name with anything. Use an A record, or your DNS host's ALIAS or ANAME record. - Adding a CNAME where an MX or TXT record already exists for the same name. The two conflict, and email verification records are the usual casualty.
- Building long chains. Every extra hop is another lookup and another way to fail. Loops make the name unresolvable.
- Pointing an MX or NS record at a CNAME. Both must point straight at a name with address records.
Related record types
A record, TXT record. The DNS record types guide compares them all.