DNS: CNAME as www record

greener asked:

I’m considering changing the DNS www records of a domain name from an A record to a CNAME. Various questions and answers on serverfault are not as clear cut as I’d hoped. Also, many DNS checking tools like DNSsy or intoDNS have as a check the fact that the www record is not a CNAME, is an A record, pointing to a public IP address.

In my case, I want to point my domain’s www record to an Amazon Web Services load balancer which I can only do with a CNAME. What would be the best way to achieve that?

My answer:


Creating the CNAME is what you’re supposed to do, according to Amazon’s documentation. You point it at the name of the Elastic Load Balancer that you were given, which you can find in the management console.

So you set up a CNAME record like:

www     IN      CNAME   lb-4294967295.us-east-1.elb.amazonaws.com.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.