Name Server Operations Guide for BIND Release 4.9.5 : Files : Standard Resource Record Format : CNAME - Canonical Name
Previous: WKS - Well Known Services
Next: PTR - Domain Name Pointer

6.5.8. CNAME - Canonical Name

alias	   {ttl}   addr-class	CNAME	Canonical name
ucbmonet	   IN		CNAME	monet

The Canonical Name resource record, CNAME, specifies an alias or nickname for the official, or canonical, host name. This record must be the only one associated with the alias name. All other resource records must be associated with the canonical name, not with the nickname. Any resource records that include a domain name as their value (e.g., NS or MX) must list the canonical name, not the nickname. Similarly, a CNAME will be followed when searching for A RRs, but not for MX RRs or NS RRs or most other types of RRs. CNAMEs are allowed to point to other CNAMEs, but this is considered sloppy.

Nicknames are useful when a well known host changes its name. In that case, it is usually a good idea to have a CNAME record so that people still using the old name will get to the right place.


Name Server Operations Guide for BIND Release 4.9.5 : Files : Standard Resource Record Format : CNAME - Canonical Name
Previous: WKS - Well Known Services
Next: PTR - Domain Name Pointer