Sign up ×
Server Fault is a question and answer site for 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 Jan 31 '11 at 10:52

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

3 Answers 3

up vote 13 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:

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:

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
Is it necessary to have elastic IP. I already have my public id associated with my ubuntu instance. I can access my site using that IP address. –  SD. May 8 at 4:01

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:
  3. Canonical name to:

Then you can access using

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
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

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:

  1. Launch an EC2 instance ( you can do this easily on the aws ec2 console at

  2. Set up your web server. If you have a Linux instance, this is called Apache, if Windows Server, this is IIS Services. There are many instructions on how to do this on the web.

At this point your website should be up and running but you probably have a long amazon url ( i.e. ). The next steps will explain how to associate your GoDaddy domain with the instance.

  1. Allocate an Elastic IP and associate it with your instance. This is really easy and you can do this in AWS EC2 console. Where it says "Networking & Security" on the left, click on "Elastic IPs". Then click "Allocate New Address", then "Associate Address", and select the instance you created in step one.

Now you will have an elastic IP which is a number that looks like Save that number because we will use it later.

  1. Go to the Zone Editor in GoDaddy. Now log into GoDaddy and go to this link: Or from the home page, go to Domains -> My Account -> Domain Management -> DNS Manager. Click "Edit Zone" when it appears.

  2. Associate domain with Elastic IP. In the Zone Editor, you will see several tables. In the table where it says "A (Host)", find the entry where Host = "@". Click on that entry to edit the field for "Points to". Add the elastic IP you just got from Amazon. Click "Save Zone File" when you are done.

6. Complete. After a few minutes your domain should now start resolving to the web server you have on EC2.

share|improve this answer
Who said anything about hosting on GoDaddy? –  Eddie B Jun 28 at 3:32

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.