2

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?

Ram Rachum
  • 5,231
  • 7
  • 34
  • 46

3 Answers3

4

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)

James Polley
  • 2,089
  • 15
  • 13
1

Besides the DDNS suggestion Chris S has ( such as http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html ), if you run your own DNS you can use Dynamic Updates ( IE Bind's http://www.zytrax.com/books/dns/ch7/xfer.html#update-policy ) with TSIG/SIG

becomingwisest
  • 3,328
  • 20
  • 18
0

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
scetoaux
  • 1,289
  • 2
  • 12
  • 26