Split-Horizon DNS with Route 53 Public and Private Hosted Zones
Intermediate · 30 minutes · 4 tasks, checked automatically · 100 points
In this lab you will implement split-horizon DNS — a pattern where the same domain name resolves to different records depending on whether the query originates inside or outside a VPC. You will create both a public and a private Route 53 hosted zone for the domain `example.internal`, associate the private zone with a VPC, add distinct A records to each zone, and then query each zone to observe how the same hostname can return different answers based on network context. This is a foundational networking pattern used in production to expose internal service endpoints privately while maintaining a separate public presence.
What you’ll learn
- Create a public Route 53 hosted zone and understand when it is authoritative
- Create a VPC and associate a private Route 53 hosted zone with it to implement split-horizon DNS
- Add different A records to each zone for the same hostname and verify the split-horizon behaviour by querying each zone independently
How this lab works
- Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: An emulated cloud on your computer: no cloud account, no bill
- Cloud: AWS
- Services: route53, ec2
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A AWS sandbox created in the Local Cloud Playground
Topics: route53, dns, split-horizon, vpc, networking, hosted-zones, private-dns, aws
Create a free account to start this lab.
Keep going
- Provision S3 and DynamoDB from a Single CloudFormation Stack
- Schedule a Recurring Cloud Scheduler Job That Publishes to Pub/Sub
- Push and Pull a Container Image with Azure Container Registry
- Publish Custom CloudWatch Metrics and Raise an Alarm
- Run a Container Task on ECS with a Task Definition and Inspect Its Logs
- Create Your First S3 Bucket and Upload an Object