Brisbane Web Agency
07 3856 3303

Difference between CNAME and A records!

CNAME (Canonical Name) records are used to map an alias or subdomain to a real or target domain name. For example, you might use a CNAME record to map the hostname “” to the target domain “”.

Here’s an example of a CNAME record: IN CNAME

In this example, the CNAME record maps “” to “”. So, when a user visits ““, the server will return the same content as it would for “”. This can be useful for hosting multiple subdomains on a single server, or for redirecting traffic to a different server without changing the URL in the user’s browser.

A (Address) records, on the other hand, map a domain name to an IP address. For example, you might use an A record to map the domain name “” to the IP address “”.

Here’s an example of an A record: IN A

In this example, the A record maps “” to the IP address “”. So, when a user visits “”, their browser will connect to the server at IP address “” to retrieve the content for the website.

It’s important to note that CNAME records cannot be used for the root domain (e.g., “”), as the root domain must be mapped to an IP address using an A record. Additionally, CNAME records can’t be used in combination with other record types for the same hostname, as this can lead to conflicts and unexpected behavior.

ANOTHER EXAMPLE:                      14400                   A                             14400                   CNAME