What is Route 53?
Amazon Web Services provides Route 53, which helps map a domain name (like www.wikipedia.org) to resources like EC2 instances. Instead of remembering an IP address, users can simply type a domain name which is much easier to remember.
Why Do We Need a Hosted Zone?
A hosted zone is like a container for DNS records of my domain. It helps to:
- Connect a domain to an EC2 server
- Manage DNS records (A, CNAME, MX, etc.)
- Make a website accessible using a custom domain
- Control routing and traffic
Steps I Followed to Create a Hosted Zone
1.Open Route 53 Console
I logged into AWS and searched for Route 53.
Then I clicked on:
Hosted Zones → Create Hosted Zone
2.Enter Domain Details
I filled in:
-
Domain Name:
mywebsite.com(example) - Type: Public Hosted Zone
Then I clicked Create Hosted Zone
Understanding Name Servers
After creating the hosted zone, AWS automatically gave me:
- 4 NS (Name Server) records
- 1 SOA record
The NS records looked something like:
ns-123.awsdns-45.com
ns-678.awsdns-12.net
Connecting My Domain to Route 53
If I bought my domain from somewhere like GoDaddy or Namecheap, I would need to:
- Go to my domain registrar
- Find DNS / Nameserver settings
- Replace existing nameservers with the AWS ones
This step links my domain to Route 53.
Adding an A Record (Pointing to EC2)
Next, I connected my domain to my EC2 instance.
Steps:
- Inside Hosted Zone → Click Create Record
- Configure:
- Record Name: (leave blank for root domain)
- Record Type: A
- Value: My EC2 Public IP
- TTL: Default
3.Click Create Record
Testing My Domain
After a few minutes, I opened:
http://mywebsite.com
And it worked! My domain was now pointing to my EC2 web server.
What I Learned
- How DNS works in real-world applications
- How domain names map to IP addresses
- Importance of nameservers and DNS records
- How AWS simplifies domain management
Top comments (0)