DEV Community

Jarvish John
Jarvish John

Posted on

Setup a DNS hosted zone in Route53 in AWS.

Setup a DNS Hosted Zone in Route 53

First, go to the AWS Console and open Route 53. Once inside, navigate to Hosted zones. This is where all your domain DNS configurations will be managed.


Next, create a hosted zone. Click on Create hosted zone, then enter your domain name (for example, jarvishj.org). Choose Public hosted zone since you want your domain to be accessible over the internet. After filling in the details, click Create hosted zone.


Once the hosted zone is created, AWS automatically adds two important records: NS (Name Server) records and an SOA (Start of Authority) record.

Add DNS records inside your hosted zone. A record is used to map your domain to an IPv4 address. A CNAME record is used to map one domain to another. An AAAA record is used for IPv6 addresses.

Once everything is set, you need to wait for DNS propagation. This usually takes a few minutes but can take up to 48 hours in some cases. After propagation is complete, your domain will correctly point to your server.

In simple terms, the flow is when a user enters your domain in the browser, Route 53 resolves it to an IP address, and the request is then sent to your server.

Top comments (0)