Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a domain name on GoDaddy and I also have an 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 to.

share

migration rejected from stackoverflow.com Apr 15 at 9:06

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Magellan, kasperd, Ward, Jenny D, Flup Apr 15 at 9:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

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

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 https://console.aws.amazon.com/e...)

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

  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 175.41.240.45. 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: https://dns.godaddy.com/default.... 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
    
Who said anything about hosting on GoDaddy? – Eddie B Jun 28 '15 at 3:32
    
Nice answer! Very detailed and complete for newbies. – georgebrindeiro Mar 1 at 21:08
    
When I type my domain name, it goes to ec2, but browser bar shows the dns name of ec2 instance rather than domain name. You can try visiting www.techsteroid.com and try clicking a link – Rachit Gupta Jun 11 at 10:53
    
@RachitGupta I could find anywhere ec2 public address. I tried clicking on search and worked fine. Can you explain you issue once? – Tarun Gupta Jun 13 at 5:46
    
@TarunGupta Thanks for your concern. Now the website is working fine. – Rachit Gupta Jun 13 at 11:35

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