Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I have an EC2 instance. Every time I stop and start it, Amazon gives it a new IP and a new DNS.

This is annoying because then I have to reconfigure a bunch of software on my local computer to interact with the new DNS.

Is there a way for me to have one DNS address that will always point to my instance?

share|improve this question
Setup a DDNS name and configure your instance to update it a boot. There are quite a few DDNS providers and loads of help on configuring software to update it at boot time. – Chris S Jan 18 '11 at 19:44
Have you contacted Amazon about this? – DanBig Jan 18 '11 at 19:50
@Dan, if he contacts Amazon they'll tell him to buy an Elastic IP as James points out. – Chris S Jan 18 '11 at 20:21
Buy? They're free, as long as you use them. – ceejayoz Mar 18 '12 at 0:25
up vote 4 down vote accepted

Amazon's solution is called an "Elastic IP address" - a static external IP address that always points to your machine, regardless of its internal address.

There's some information on it on the ec2 page, and more information on how to configure it in this walkthrough (which is aimed at solving a slightly different problem, but still mostly applicable here)

share|improve this answer

Besides the DDNS suggestion Chris S has ( such as ), if you run your own DNS you can use Dynamic Updates ( IE Bind's ) with TSIG/SIG

share|improve this answer

As James Polley mentioned, Elastic IP adresses may be way to go in your case, I think.

Moreover, they're quite inexpensive.

Elastic IP Addresses

No cost for Elastic IP addresses while in use

  • $0.01 per non-attached Elastic IP address per complete hour
  • $0.00 per Elastic IP address remap – first 100 remaps / month
  • $0.10 per Elastic IP address remap – additional remap / month over 100
share|improve this answer

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.