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 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 Jun 25 '10 at 1:54

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

This is a question for 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
up vote 8 down vote accepted

If you're setting up a subdomain (e.g. instead of, I'd recommend using a CNAME to the long form, public hostname associated with the Elastic IP address (e.g. if your IP is, the hostname is usually something like

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., continuing the example above), it would pay for bandwidth.

Unfortunately, if you're configuring the root of your domain (e.g., 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's A record to your Elastic IP. This may take 24 hours to propagate depending on your TTL.

share|improve this answer

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.