Associate NameCheap domain to Amazon EC2 instance

Scenario: You have registered a domain name through NameCheap and you have a running instance of Amazon EC2. Now you want to point the domain to the that EC2 instance.


  1. Log into and Amazon Web Services (AWS).
  2. In your dashboard, go to “Domain List” and locate the domain name you want to point to AWS. Click the “manage” button.
  3. On the next page, click “Advanced DNS” tab. Under host records section, you should see 2 entries with “@” and “www”.
  4. Switch to AWS management console and go to your EC2 instance.
  5. On the left menu, click “Elastic IPs”
  6. Click “Allocate new address”.
  7. Select the new address you just created and click “Associate address”.
  8. Select your network interface from the drop-down.
  9. Select the private address from the drop-down and click “Associate”
  10. The changes in “Elastic IPs” will reflect on public IP address of the EC2 instance.
  11. Copy the public IP address and public DNS
  12. Switch back to, locate entry with “@” symbol, set type to “A Record” and set value to public IP address
  13. Locate entry with “www”, set type to “CNAME Record” and set value to public DNS
  14. Apply your changes and you’re done!

You may have to wait a little before the association takes place. I’d say about 5 minutes. Now open your browse and type your domain name, it should now point to your EC2 instance.

6 thoughts on “Associate NameCheap domain to Amazon EC2 instance

Leave a Reply

Your email address will not be published. Required fields are marked *