CNAME record

CNAME Record, or Canonical Name record, is a Domain Name System (DNS) resource record in a DNS server database or zone file.

Sponsor: Geeky T-Shirt: Blue Screen of Death (Amazon)

What is CNAME Record?

Stands for Canonical Name record, a Domain Name System (DNS) resource record in a DNS server's database or zone file. A CNAME record is used to map an alias to the canonical name (true name) of a server. The CNAME record lets you use more than one name to refer to a single host on the network.

If a name server is queried by a resolver to look up a host and the queried name is an alias in a CNAME record, the name server replaces the alias name with the canonical name of the host being looked up, and then looks up the address of the canonical name.

CNAME Record example

Here is an address record for the host named server12 in the Internet domain. This record has the IP address, followed by a CNAME record indicating that the name bobby (or the fully qualified domain name is an alias for the same host:  IN  A
bobby IN CNAME server12
CNAME record stands for Canonical Name Record.