Learn/Networking
Networking · 13 min read · August 2026
Route 53: Records, Health Checks, and Failover Thinking
Hosted zones, A/ALIAS records, and health-checked failover as AWS documents them — DNS as a control plane, not a magic CDN.
Source. Amazon Route 53 Developer Guide · Record types · Health checks and DNS failover
Abstract & theoretical context
Amazon Route 53 is authoritative DNS. A public hosted zone holds records for a domain. ALIAS records map apex names to AWS targets (CloudFront, ALB, S3 website) without a CNAME at the zone apex. Health checks can flip failover routing from primary to secondary. This is not CloudFront and not a load balancer. Chapter demos often stop at ‘I bought a name.’ This lab reconstructs hosted zone + record + (optional) failover so you can explain what answers when a resolver asks.
Models, formulas & variables
1. Resolution
Resolver → NS of hosted zone → record set matching (name, type) → routing policy
- — Simple, weighted, latency, failover, geolocation, multivalue are policies, not record types.
- — TTL is how long caches may keep the answer. Low TTL helps labs; it increases query volume.
2. Failover
If health(primary) = unhealthy then answer(secondary)
- — Health checks need an endpoint that actually represents the app.
- — Failover without two working targets is a false sense of DR.
Reference implementation
Copy into a sandbox account. Pin Region ap-south-1 unless the lab says otherwise.
route53-list.sh
AWS CLI · bash
aws route53 list-hosted-zones
aws route53 list-resource-record-sets --hosted-zone-id ZXXXXXXXX
# Example ALIAS-to-ALB is console-or-CloudFormation heavy; inspect:
aws elbv2 describe-load-balancers --query "LoadBalancers[].DNSName"Lab procedure
- 01If you do not own a domain, use a lab zone the chapter created — do not hijack tcetmumbai.in.
- 02List hosted zones and record sets. Identify SOA and NS.
- 03Create a test A or CNAME to a known endpoint, TTL 60, then delete it.
- 04Read the failover routing documentation and draw primary/secondary on paper.
- 05Do not leave dangling records pointing at terminated labs.
Key insights
- ALIAS is AWS-specific. CNAME cannot sit on the zone apex in classic DNS.
- Route 53 query charges are real at scale; they are noise for a campus lab.
- Health checks from multiple regions avoid a single false-unhealthy.
Account & lab requirements
A domain or a chapter-owned hosted zone. IAM route53:ChangeResourceRecordSets scoped tightly.