April 24, 2024

ALIAS record vs CNAME record

Let’s compare these two DNS record types that have a similar purpose. Both redirect from one hostname to another, but they have more than a few differences in between. Let’s see what exactly distinguishes the ALIAS record and the CNAME record.

What is the ALIAS record?

ALIAS record links two hostnames, showing that one is just another way to write the other. It is not a standard DNS record type, and not all of the Managed DNS providers offer it. This record type can coexist with other DNS records, for example, MX records. A great thing about the ALIAS records is that they will save time and not only show the other hostname, but an ALIAS query will return the IP address. The only problem with ALIAS that might lead you to CNAME records is that it doesn’t work well with GeoDNS because it will show the IP address of the name server and won’t redirect to the best location. 

Why do you need an ALIAS record?

(more…)