How to get a Free Domain Name for AWS Web Hosting

Rahul Gupta
Nerd For Tech
Published in
2 min readFeb 4, 2021

--

Here, we will learn how to set free Domain Name for a AWS EC2 instance . Considering that you have already created a EC2 instance on AWS .
and you have already configured EC2 instance to handle HTTPS or HTTP request from the world . If not please take reference from the given links.

  1. How to Create a Ubuntu 20.04 LTS server in AWS EC2 .
  2. How To Deploy Laravel Project on EC2 AWS . (Complete Reference to Create a Apache server , MySQL server and deploy Laravel Project)

Allocate a Elastic IP Address to your EC2 Instance

You can use EC2 Instance public IP Address to Domain Name System but if you will restart , stop , start your EC2 Instance the EC2 IP Address will Change and you have to change that in you Domain Name System also that’s why you should use Elastic IP for mapping EC2 with Domain Name System.

  1. Go to EC2 Instance> Network & Security > Elastic IP in AWS Services.
  2. Click On Allocate a New Address
  3. AWS provides only one free Elastic IP for AWS Free Tier.

4. Choose the Elastic IP Address Created above and Associate that IP to AWS EC2 instance.

5. Now you can use this Public Elastic IP Address in your Domain Name System .

Get a free Domain Name

  1. You can get a free domain name from Freenom. It provides .ml , .tk , .cf , etc for free .
  2. Go to Manage DNS section and add two “A” Records to map Domain with your public IP address of your EC2 .

3. It might take 10 — 30 min to Map your domain with your EC2 .

--

--