Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a domain name on godaddy and i also have a amazon web services account. I have an EC2 instance and i want to change the dns nameserver on the godaddy control panel to aws and i have no idea what to change it too...if anyone has any idea on how to route the dns from godaddy to the amazon web servers i would highly appreciate it...thanks

share|improve this question

migrated from stackoverflow.com Jan 31 '11 at 10:52

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

up vote 11 down vote accepted

First, you need an "Elastic IP" address from Amazon, which is basically a static IP. You can use the ec2-allocate-address command to get one, and then you can associate it with one of your EC2 instances.

For the details, see: http://aws.amazon.com/articles/1346?_encoding=UTF8&jiveRedirect=1

Note that you have to pay ($0.01/hr) for elastic IP addresses that aren't associated with a running instance.

Next, you use Godaddy (or any DNS service) to associate the host name you want with your static IP. This is done with an "A" (for "address") record. See this help page on Godaddy to set up A records: http://help.godaddy.com/article/680#arecs

Finally, you may need to wait some time (few minutes to an hour) for it all to propagate through. You can test it all by pinging your hostname.

share|improve this answer
add comment

You can create a CNAME record that points to the EC2 Public DNS

In the GoDaddy DNS manager:

  1. Set record type to: CNAME
  2. Domain name to: whatever.domain.com
  3. Canonical name to: ec2-your-ec2.compute-1.amazonaws.com

Then you can access ec2-your-ec2.compute-1.amazonaws.com using whatever.domain.com

This will same you from having to pay the $.01 per hour for an elastic IP.

share|improve this answer
    
Hi, when you create a CNAME, is it going to show the public DNS from EC2 or is it going to be the registered domain in GoDaddy? I did the A record thing because our university had an IP Elastic associated to our instance but out of curiosity your way is going to be more affordable for micro blogger and indie developers. Thanks :) –  Maziyar Feb 7 '13 at 3:01
1  
Note that you have to pay for the elastic IP only when it's not associated with an EC2 instance. –  Ben-Uri Mar 19 '13 at 7:22
add comment

Your Answer

 
discard

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.