What is a CNAME?

What is a CNAME?

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:

  1. An A record for example.com pointing to the server IP address
  2. A CNAME record for www.example.com pointing to example.com