AWS Builder Center
Building Private DNS with Amazon Route 53

Building Private DNS with Amazon Route 53

A hands-on lab exploring Route 53 Private Hosted Zones, DNS records, and internal name resolution inside an Amazon VPC.

Cloud Engineer | AWS | Generative AI & Agentic AI
While learning AWS networking, I wanted to understand DNS beyond simply mapping a domain name to an IP address. I built this lab to explore how Amazon Route 53 Private Hosted Zones work inside a VPC.
In this architecture, a bastion host needs to access an internal server using a private DNS name instead of directly using its private IP address.
The private hosted zone contains records such as:
1
2
3
A
thewhitepaper.internal.news.org
→ 10.10.0.10
and:
1
2
3
CNAME
database.thewhitepaper.internal.news.org
→ thewhitepaper.internal.news.org
When the bastion host queries:
1
database.thewhitepaper.internal.news.org
Route 53 resolves the CNAME first:
1
2
3
database.thewhitepaper.internal.news.org
↓
thewhitepaper.internal.news.org
Then the A record resolves the hostname to:
1
10.10.0.10
The final flow looks like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
Bastion Host
↓
DNS query
↓
Route 53 Private Hosted Zone
↓
CNAME
↓
A Record
↓
10.10.0.10
↓
Internal Server
One important concept I learned from this lab is that DNS resolution and network connectivity are separate things.
DNS answers:
1
Where is this resource?
while VPC networking determines:
1
Can I actually reach this resource?
Even if a hostname successfully resolves to 10.10.0.10, connectivity can still fail because of security groups, routing, or network ACLs.
This lab helped me better understand how private DNS can make internal AWS architectures easier to manage and avoid hard-coding private IP addresses.
I am also building and documenting more AWS projects on my personal website:
My goal is to keep learning through hands-on projects and share what I learn in a simple way that other cloud learners can reproduce and understand.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article