Sunday, 9 December 2018

CNAME

CNAME
A Canonical Name record (abbreviated as CNAMErecord) is a type of resource record in the Domain Name System (DNS) which maps one domain name to another, referred to as the Canonical Name. ...CNAME records must always point to another domain name, never directly to an IP address. 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 www.example.com 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 www.example.com pointing to example.com As a result, example.com points to the server IP address, and www.example.com 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 www.example.com automatically inherits the changes.
Sources
CNAME

No comments:

Post a comment