What is the cName record in DNS?

cName stands for the Canonical Name. It is used to create an ALIAS from one domain to another domain name. CNAME records must point to a domain, not to an IP address.

If you have a domain www.example.com and want to map it with the example.com, you can set the cName record instead of creating another A record for www.

A Record :
                                

Record  

Domain

Server IP Address

A

example.com

192.***.***.100

 

cName Record :

www.example.com

example.com


By doing this, the result will be example.com points to the server IP address and www.exaple.com points to the same address via example.com. If somehow IP address got changed, you just need to change at only one end. You need to update the A record for the example.com and www.example.com automatically inherit the changes.


Was this answer helpful?

« Back

chat