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
migrated from stackoverflow.com Jan 31 '11 at 10:52
This question came from our site for professional and enthusiast programmers.
First, you need an "Elastic IP" address from Amazon, which is basically a static IP. You can use the
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.
You can create a CNAME record that points to the EC2 Public DNS
In the GoDaddy DNS manager:
Then you can access
This will same you from having to pay the $.01 per hour for an elastic IP.
You do not need hosting from GoDaddy. I have GoDaddy and I host with EC2. It is very simple to set up a website on EC2 and link it to a GoDaddy domain. Here is what you do:
At this point your website should be up and running but you probably have a long amazon url ( i.e. ec2-175-41-219-186.ap-northeast-1.compute.amazonaws.com ). The next steps will explain how to associate your GoDaddy domain with the instance.
Now you will have an elastic IP which is a number that looks like 18.104.22.168. Save that number because we will use it later.
6. Complete. After a few minutes your domain should now start resolving to the web server you have on EC2.