Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I bought a domain from godaddy, at godaddy I administered the name server of the domain to nameserver given by the hosting company.

As I want to switch to EC2 instance, does it mean I need to set the name server of the domain to my EC2 instance? what do i need to configure in my EC2?

share|improve this question
up vote 2 down vote accepted

You shouldn't run DNS out of the EC2 cloud; DNS needs to be stable and EC2 is not.

The recommended thing to do is to use Route 53. This is flexible, cheap, high-availability DNS. If you'd rather host your own DNS you're perfectly capable of doing so, but this should be done on a VPS or other server.

Things to keep in mind include that if you want reverse-IP mappings, you'll have to ask Amazon to provide them (these are rather important when sending mail, and not so important otherwise). Often it's simply easier to use the DNS records you get.

And lastly, any DNS entries will have to be associated with an Elastic IP rather than the local IP on the instance. You should look up the difference between Elastic IPs and instance IPs; the short version is that Elastic IPs can be quickly switched to new instances when instances go down.

share|improve this answer
thanks Michael Lowman , from your suggestion it seems i need to follow the step would you mind to elaborate for point reverse-IP mappings and how it related to sending email.. thanks again , very much. – iwan Sep 3 '11 at 15:48
"DNS needs to be stable and EC2 is not." QFT – Wesley Sep 3 '11 at 18:46

You should be able to associate an elastic ip to your new EC2 instance in the EC2 console - then direct the A Record in the DNS to that ip - If I understand the Q. correctly!

share|improve this answer
hi williamsowen, thank you for your comments.. it does make sense.. however, i could not link up end to end into one story, if i am not wrong (adding A record in the DNS happened at my EC instance, is that correct?), if yes, how would "internet" know that is hosted somewhere inside my EC2 instance? sorry if it is dumb Q. Thanks – iwan Sep 3 '11 at 15:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.