Route 53 & DNS Routing Policies

AWS Route 53 hosted zones, routing policies (simple/weighted/latency/failover/geolocation), health checks, and alias records.

Overview

Overview AWS Route 53 is a globally distributed authoritative DNS service with additional traffic management capabilities that go far beyond standard DNS. It operates from 13 geographically distributed DNS server clusters, providing low-latency responses worldwide and SLA-backed availability of 100% for authoritative DNS.

Route 53 combines three functions: domain registration, authoritative DNS hosting (hosted zones), and health check-based traffic routing. This combination makes it a core building block for multi-region availability, blue/green deployments, and gradual traffic shifting in AWS architectures.

Hosted zones come in two types. Public hosted zones serve DNS responses to the public internet for your domain. Private hosted zones are associated with one or more VPCs and answer DNS queries only from within those VPCs, enabling internal service naming without exposing records publicly. Private hosted zones are commonly used to provide readable names for internal services and override public DNS records inside the VPC boundary (split-horizon DNS).

Route 53 routing policies determine how Route 53 responds when it receives a query for a record set. Simple routing returns a single resource. Weighted routing splits traffic by percentage across multiple resources. Latency-based routing directs each query to the AWS region with the lowest measured latency from the query origin. Failover routing directs traffic to a primary resource and switches to a secondary when the primary's health check fails. Geolocation routing directs users based on the geographic origin of the DNS query. Geoproximity routing (requires Traffic Flow) directs based on geographic coordinates with adjustable bias.

Alias records are a Route 53-specific extension that behave like CNAME records but work at the zone apex (e.g., example.com pointing to an ELB). Standard DNS forbids CNAME at the apex; alias records resolve this by returning the actual IP addresses of the target resource, not a CNAME chain. Alias records to AWS resources (ELB, CloudFront, S3, API Gateway) are also free of per-query charges, unlike regular A records resolving external IPs.

Key concepts

  • Hosted Zone
  • Alias Record
  • Health Checks
  • Weighted Routing
  • Latency-Based Routing
  • Failover Routing

Interview questions

  • Design a multi-region active-passive architecture using Route 53. What routing policies and health checks would you use, and what are the failure mode timelines?
  • What is the difference between an Alias record and a CNAME, and when must you use an Alias record?
  • How does Route 53 weighted routing work, and how would you implement a canary release?

Sign up free to read the full topic

More Networking topics

Start free on Cariara · Coding problems · System design studio