When I tried to connect my domain name to my server, I used Route 53 in AWS. At first, I thought it would be difficult, but it was actually simple when I followed the steps.
First, I logged into the AWS console and opened Route 53. Then I clicked on Hosted Zones and selected Create Hosted Zone.
Next, I entered my domain name (like mywebsite.com) and selected Public Hosted Zone. Then I clicked create.
After creating it, I saw some default records like NS and SOA. I understood that the NS records are important because they tell where my domain is managed.
If my domain was bought from somewhere else (like GoDaddy), I went there and updated the Name Servers with the ones given in Route 53. This step connects my domain to AWS.
Then I created a new record. I clicked on Create Record and added an A record.
In that:
I gave a name (like www)
Selected type as A
Entered my EC2 public IP address
Then I saved it.
After some time, I opened my domain in the browser, and it started working.
So in simple words, I created a hosted zone, updated name servers, and connected my domain to my server.
This is how I set up a DNS hosted zone in Route 53 in a simple way.
Top comments (0)