Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

CNAME to AWS Public DNS?

1

86 views

Instead of assigning an Elastic IP to an EC2 instance, can I just CNAME a URL to the instance's public DNS name?

asked February 22, 2011 8:37 pm CST
posted via ServerFault

3 Answers

2
Best answer
 

Yes, you can do that however the instances public DNS name will change any time an instance is started up. The best options are to either use the elastic IP (EIP) or work behind an elastic load balancer (ELB). Both options would be better to point a DNS entry to and would be able to remain the same on instance restarts. You would use a CNAME entry for ELB and you could use either an A or CNAME record for the EIP option. The advantage of the ELB option is that you could have multiple EC2 instances behind it giving you greater fault tolerance.

answered February 22, 2011 9:23 pm CST
1
 

You can; but you really should get a elastic IP and map an A record to that, it is a much better solution. It'll be more reliable and result in faster DNS for clients(less lookups)

answered February 22, 2011 9:23 pm CST
1
 

Yes. Just remember when you're setting up a cname to an external domain, you need to suffix it with a .

answered February 22, 2011 9:23 pm CST

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions