Tuesday, August 3, 2021

CNAME, A-Record, DNS Mapping, AWS Route 53

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 / HostnameRecord TypeTarget / Destination
mydomain.comA111.222.333.444
www.mydomain.comCNAMEmydomain.com
ftp.mydomain.comCNAMEmydomain.com
mail.mydomain.comCNAMEmydomain.com



No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass