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

I have an Elastic IP address that points to an instance of my EC2. How can I configure my domain name (hosted at GoDaddy) to point there?

share|improve this question

migrated from stackoverflow.com Jun 25 '10 at 1:54

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

1  
This is a question for serverfault.com. The basic idea is that you set up a CNAME or A record in DNS to point to your amazon instance. –  Dean Harding Jun 24 '10 at 1:19

2 Answers 2

up vote 8 down vote accepted

If you're setting up a subdomain (e.g. www.example.com instead of example.com), I'd recommend using a CNAME to the long form, public hostname associated with the Elastic IP address (e.g. if your IP is 1.2.3.4, the hostname is usually something like ec2-1-2-3-4.compute-1.amazonaws.com.).

Amazon has custom-configured servers within their cloud that cause the long form hostname to resolve to the internal, instead of external, IP address. Traffic between instances that connect to each other using their internal IP addresses don't pay bandwidth charges, while if one EC2 machine connects to the public IP address (e.g. 1.2.3.4, continuing the example above), it would pay for bandwidth.

Unfortunately, if you're configuring the root of your domain (e.g. example.com), it's not possible to use a CNAME because of restrictions in DNS.

share|improve this answer

Login to your GoDaddy account; in the control panel you'll be able to manage your DNS records. You're going to want to change yourdomain.com's A record to your Elastic IP. This may take 24 hours to propagate depending on your TTL.

share|improve this answer

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.