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?

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

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


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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