CNAME records are the two common ways to map a host name (“name”) to one or more IP addresses. There are important differences between these two records.
The A record points a name to a specific IP. If you want blog.xyz.com to point to the server 126.96.36.199 you’ll configure:
blog.xyz.com. A 188.8.131.52
The CNAME record points a name to another name instead of to an IP. The CNAME source represents an alias for the target name and inherits its entire resolution chain.
A record points a name to an
CNAME record can point a name to another
CNAME or to an
ALIASrecords cause a name to resolve to an IP. Conversely, the
URLrecord redirects the name to a destination. The
URLrecord is a simple and effective way to apply a redirect for one name to another name, for example redirecting
Aname must resolve to an IP. The
ALIASrecords must point to a name.
You should never use a CNAME record for your root domain name (e.g. XYZ.com).