Is there any way to map EC2 instance on a custom domain I own within free tier of AWS? I used it once with Route53 but I got charged, so I know it is paid. I could not find any docs for the same. Is Route53 the only way to map domain to EC2 instance on AWS?
Go to AWS console and open "Route 53" service then click on "Create Hosted Zone" button. Enter your newly created domain name in related text box and click on "Create" button. Once you created above hosted zone, it will generates four NS records which we need to add into free domain Name Server setting.
Route 53 free tier If you check the official AWS website about the free tier, you will find that AWS doesn't offer a free tier for Route 53.
You can map a domain using an external DNS management service(E.g Google DNS, Godaddy) by mapping a CName record set to the public DNS issued by the EC2 instance.
Public DNS (IPv4) ec2-54-93-211-192.eu-west-1.compute.amazonaws.com
You can find the auto-generated public DNS in EC2 web console after selecting the EC2 instance. Also it is recommended to associate and Elastic IP and then use the new public DNS for the CName mapping so that, the public DNS won't change in between EC2 stop and start.
You should find that your AWS account also includes access to Amazon Lightsail, which gives you your first 3 DNS zones and up to 3 million DNS queries at no charge, if you create them from the Lightsail portal rather than creating them directly in Route 53.
The Lightsail DNS service is still powered by Route 53. It doesn't have as many advanced features as the paid version, but is quite suitable for basic sites.
See https://amazonlightsail.com/docs/.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With