What is a CNAME record?

A Canonical Name or CNAME record, It is DNS record that used as an alias name to a true or canonical domain name. CNAME records are typically used to map a subdomain such as www or mail to the domain hosting that subdomain's content
 
A Canonical Name or CNAME record, It is DNS record that used as an alias name to a true or canonical domain name. CNAME records are typically used to map a subdomain such as www or mail to the domain hosting that subdomain's content

Its the alias to a domain name. For example if I am having a domain name “kirti.org” but I also want “kirti.in”, “kirti.com” to be linked with same address I have to define a CNAME record in DNS domain server, where the “kirti.org” has been defined as a normal A or AAAA record.
 
CNAME records can be used to alias one name to another. CNAME stands for Canonical Name.


A common example is when you have both example.com and Example Domain pointing to the same application and hosted by the same server. In this case, to avoid maintaining two different records, it’s common to create:


An A record for example.com pointing to the server IP address
A CNAME record for Example Domain pointing to example.com
As a result, example.com points to the server IP address, and Example Domain points to the same address via example.com. Should the IP address change, you only need to update it in one place: just edit the A record for example.com, and Example Domain automatically inherits the changes.
 
A Canonical Name or CNAME record is a type of DNS record that maps an alias name to a true or canonical domain name. CNAME records are typically used to map a subdomain such as www or mail to the domain hosting that subdomain's content.
 
Back
Top