Networking · IP Services › DNS
CNAME
Cheat sheet · https://pcornel.dk/topic.php?topic=1204
Answer
A CNAME record makes one name an alias for another (canonical) name; the resolver follows the chain and returns the target's A/AAAA records. A name with a CNAME cannot have other record types.
Remember
- A/AAAA map names to IPv4/IPv6; CNAME aliases one name; PTR is reverse lookup
- Recursive and authoritative roles answer different questions
- UDP 53 is common, while TCP 53 is required for some large replies and zone operations
- NXDOMAIN, NODATA, SERVFAIL and timeout indicate different boundaries; TTL controls cache lifetime.
First checks
dig <alias> CNAME— targetdig <alias> +short— resolved chain
Verify in this order
query alias → CNAME → target → A/AAAA
Where it usually breaks
local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1204