Most of the articles I've read show you how to do this using Route 53. However that costs $0.50/month per domain or $/6 year. Why do that when you can just use namescheaps DNS servers?
There's more info here if you need it https://www.namecheap.com/support/knowledgebase/article.aspx/319/2237/how-can-i-set-up-an-a-address-record-for-my-domain
You should be able to get to your EC2 instance using the Namescheap domain! Now go enjoy the $6 PER DOMAIN you saved by not using Route 53!
Creating an Elastic IP
An elastic IP allows you to switch EC2 instances seamlessly. If you upgrade, or setup a new instance and want to move over this is needed. Otherwise you have to repoint the DNS to the new instance manually every time. So this is not required, but recommended.- Login to AWS
- Click on EC2
- Choose Elastic IPs under Network & Security at the left
- Click Allocate new address and then Allocate
- Select the new row created
- Click on actions and select Associate address
- Choose your EC2 instance and the private IP and click associate
Configuring Namescheap DNS
If you haven't already, login to the EC2 dashboard and select your instance. Note the new Public IP and Public DNS, we'll need these. Now we have tell Namescheap's DNS servers to point to our EC2 instance.- Login to Namescheap
- Click on the Domain List and click Manage for the domain you want to use
- Now click the Advanced DNS tab
- There will be two Host Records
- In the Value column of the "CNAME Record" row it will say "parkingpage.namescheap.com". Paste in the Public DNS of your EC2 instance
- Click Add a new record and choose "A Record"
- In the new "A Record" row put "@" in the Host column and copy in the Public IP of your EC2 instance into the "Value" column.
- Click Save all changes
There's more info here if you need it https://www.namecheap.com/support/knowledgebase/article.aspx/319/2237/how-can-i-set-up-an-a-address-record-for-my-domain
You should be able to get to your EC2 instance using the Namescheap domain! Now go enjoy the $6 PER DOMAIN you saved by not using Route 53!
Happy surfing!
Comments
Post a Comment