DNS with Amazon EC2 Elastic Load Balancer

Posted by user68173 on Server Fault See other posts from Server Fault or by user68173
Published on 2011-01-25T15:07:25Z Indexed on 2011/03/17 0:12 UTC
Read the original article Hit count: 396

Filed under:
|

I'm told that I can't make the root of a domain (example.com) a CNAME - I have to specify an IP.

Given that you can't use an IP address to point at your Elastic Load Balancer, what's the best thing to do?

Currently I do this:

example.com - A record to elastic IP of first server- redirects to www.example.com

www.example.com CNAME to hostname of load balancer

If the first server is out of action, the redirect will fail.

Is there a better way to approach this?

© Server Fault or respective owner

Related posts about dns

Related posts about amazon-ec2