- https://www.web24.com.au/tutorials/cname-records-used
- https://support.dnsimple.com/articles/differences-a-cname-records/
- https://www.pickaweb.co.uk/kb/cname-can-use-domain/
A CNAME, or Canonical Name record, is a record that points to another domain address rather than an IP address.
For example, say you have several subdomains, like www.mydomain.com, ftp.mydomain.com, mail.mydomain.com etc and you want these sub domains to point to your main domain name mydomain.com. Instead of creating A records for each sub-domain and binding it to the IP address of your domain you can create CNAME records.
As you can see in the table below, in the case where the IP address of your server changes, you only need to update one A record and all the subdomains follow automatically because all the CNAMES point to the main domain with the A record:
(sub)Domain / Hostname | Record Type | Target / Destination |
mydomain.com | A | 111.222.333.444 |
www.mydomain.com | CNAME | mydomain.com |
ftp.mydomain.com | CNAME | mydomain.com |
mail.mydomain.com | CNAME | mydomain.com |
No comments:
Post a Comment