|Search the knowledgebase|
|Article ID : #||Last review : 2007-02-02 22:38:00|
How to use CNAME records
CNAME dns records are an important and very useful time saving dns type. CNAME records can be considered an alias. For example. If you have 2 domain names mydomain.com and mydomain.co.uk and always want www.mydomain.co.uk to point to www.mydomain.com, you can CNAME www.mydomain.co.uk to www.mydomain.com. This way you only ever have to maintain the IP address of the www.mydomain.com record. If you change it, the www.mydomain.co.uk record will always change automatically.
A great use of this is where a single web site hosts multiple web sites. Each site is probably www.somthing.com. There are probably may sites pointing to the same server IP. Should this IP ever change it would be necessary to change all the 'www' records for all the domains. If you however CNAME the www records to one master domain, then you only have to change that master domain www record for all the others to change automatically. This is a fantastic time saver, especially if you don't control the dns for some of those domains.
Cannot be used with MX records. Do not point an MX record to a CNAME.
Do not CNAME the host domain, i.e. CNAME is OK for host records such as 'www', but do not cname the actual domain itself. If you require your Root or Naked domain (also known as the Zone Apex) pointed to a CNAME, you can see use the ALIAS record type. See the KB article on using the ALIAS record
Please note that all articles are the property of Microtech Limited and must not be re-produced without express written permission
Subscribe to kb news feed