0

I have 2 micro instances on my EC2 account. I've been using putty with the public dns address to gain ssh access to the servers. How can I make it so they both have a dedicated IP address and then add a domain name from another source such as host gator or godaddy?

If I would turn on/off the instances, the dedicated IP would stay put right?

3

you need to add Elastic IP address to your instances. and yes, if you turn off the instance, the IP will be lost, but you can Re-Attach it to server, after it is brought online instantly.

  • Thanks for the responce Frank. I'm on the AWS EC2 web console now and I'm making a new elastic ip, is this the dedicated IP? Can I make one for each instance? – user1062058 Nov 25 '11 at 22:23
  • I've got an ip attached to an instance. Just to clarify, if I turn off the instance the elastic IP will change? – user1062058 Nov 25 '11 at 22:44
  • yes, this is the Dedicated IP address. and Yes, you can create new IP and attach it to every instance you have. – Farhan Nov 26 '11 at 5:48
1

If I would turn on/off the instances, the dedicated IP would stay put right?

Yes, an elastic IP would stay put while you turn off and on the instances. If you don't associate your elastic IP with an instance, you'll be charged at $0.01 per hour, though.

If your host doesn't allow creating an "A" record in the DNS zone file, you might want to use a free DNS service such as zoneedit.com to achieve the same result. GoDaddy does allow creating an 'A' record. Not sure about hostgator.

0

You can allocate and associate an elastic IP address with each of your instances. When allocated, they're yours until you release them. You can associate them with any running instance. When the instance stops, the ip address will be disassociated from the instance but still allocated to you. When you restart the instance, you'll need to re-associate the ip address.

You can then create a DNS A record using godaddy etc. for the ip address.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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