Route 53 records and routing policies
Hosted zones, alias records, TTLs, weighted, latency, geolocation and failover routing, health checks and private DNS in Route 53.
Regions, endpoints, ARNs and service scopeElastic Load Balancing
Route 53 records and routing policies
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- A hosted zone holds the records for a domain. A public zone answers the internet; a private zone answers only inside associated VPCs.
- Alias records point at AWS resources, work at the zone apex, follow address changes automatically and cost nothing to query.
- A routing policy decides which answer a query gets: weighted, latency, failover, geolocation, multivalue and others.
- Routing happens in DNS, so caching delays every change and Route 53 sees the resolver more often than the user.
- Health checks remove bad answers. If every record in a group is unhealthy, Route 53 treats them all as healthy rather than answer with nothing.
- Route 53's query answering is built to keep working when its change API, hosted in us-east-1, does not. Plan failover that needs no edits.
Names in front of moving things
Your load balancer has a long generated hostname and IP addresses that change. A CloudFront distribution is the same. Users need shop.example.com, and you need to move what it points at without telling them. That’s DNS. If records and TTLs are hazy, read DNS records and TTLs in practice first.
Route 53 is AWS’s DNS service. It registers domains, hosts zones and answers queries. Those are separate jobs: you can register a domain elsewhere and host its zone here by changing the name servers at the registrar.
Zones and records
A hosted zone is the set of records for a domain. A public zone answers anyone. A private zone answers only queries from VPCs you associate with it, so db.internal.example.com exists inside your network and nowhere else.
Alias records
A CNAME says “this name is really that name”. DNS forbids one at the zone apex, example.com itself. Route 53 adds the alias record: an A or AAAA record that, instead of fixed addresses, points at an AWS resource such as a load balancer, CloudFront distribution or S3 website endpoint, or at another record in the zone.
{ "Action": "UPSERT", "ResourceRecordSet": {
"Name": "example.test", "Type": "A",
"AliasTarget": {
"HostedZoneId": "Z2FDTNDATAQYW2",
"DNSName": "d111111abcdef8.cloudfront.net",
"EvaluateTargetHealth": false } } }
That zone ID is the fixed one for CloudFront. Route 53 resolves the target itself and returns its current addresses, so there’s no second lookup. Alias queries to AWS resources aren’t charged, while CNAME queries are. You can’t set a TTL on an alias to an AWS resource. Default to alias records for anything in AWS.
Routing policies
Several records can share a name and type, and a routing policy picks among them:
| Policy | Answers with | Use for |
|---|---|---|
| Simple | the record’s values | one target |
| Weighted | in proportion to weights | gradual rollouts |
| Latency | the Region with lowest measured latency | multi-Region apps |
| Failover | primary while healthy, else secondary | standby sites |
| Geolocation | by the user’s country or continent | legal or language rules |
| Geoproximity | by distance, adjustable with a bias | shifting areas between Regions |
| IP-based | by the source address range | steering known networks |
| Multivalue answer | up to eight healthy values | cheap spreading across hosts |
AWS has also added an AZ-affinity policy for private zones. Latency routing is about speed and geolocation about where the person is. They aren’t the same: the nearest country isn’t always the fastest path. With geolocation, add a default record or unmatched users get no answer.
Weighted records look like this, two answers for one name:
api.example.test. A blue 90 60 192.0.2.10
api.example.test. A green 10 60 192.0.2.20
Simulating 1,000 resolvers each drawing one answer gave 897 to 103. Real traffic is lumpier: each resolver caches its answer for the TTL and serves however many users sit behind it. Use DNS weights for coarse shifts, and load balancer weights when you need precision.
Health checks and failover
A health check probes a public endpoint from many locations, watches a CloudWatch alarm, or combines other checks. An endpoint is considered healthy if more than 18% of checkers say so, which tolerates a few bad network paths. Records with failing checks are left out of answers. For alias records, EvaluateTargetHealth borrows the target’s own health.
If nothing in a group is healthy, Route 53 treats all of it as healthy and answers by the policy. A wrong answer beats no answer. A record with no health check always counts as healthy.
Failover is never instant. Add detection time to the TTL and whatever clients cache beyond it. DNS routing at scale covers that limit.
Control plane and data plane
Answering queries runs on a globally distributed data plane. Creating and changing records goes through a control plane in us-east-1. Design recovery so it relies on health checks you set up beforehand, not on editing records during an incident. AWS offers an optional “accelerated recovery” for public zones that targets restoring changes within about 60 minutes if that Region is impaired.
About the video
The embed is DheerajTechInsight’s 23-minute Route 53 deep dive from November 2025. Its chapters cover an architecture flow, what Route 53 is, record types, routing policies, a hands-on lab and good practices. I judged it from chapters and description only; its audio is flagged as original US English.
What was run: the alias and weighted records were created on moto 5.1.22, a local emulator, which also accepted a CNAME at the apex that real Route 53 rejects. The 897/103 split is a ten-line simulation, not DNS. Routing and health check behaviour comes from the Route 53 developer guide, checked in November 2026.
Check yourself
You want example.com, the bare domain, to point at a load balancer. Why not a CNAME?
DNS doesn't allow a CNAME at the zone apex, which already has SOA and NS records. A Route 53 alias record of type A or AAAA can point the apex at the load balancer.
You shift 10% of traffic to a new stack with weighted records, but you measure something like 25% of requests there. How can that be?
Weights apply to DNS answers, not requests. A resolver caches one answer for its TTL and may serve many busy users from it, so request share can differ a lot from the weights.
Both your primary and secondary failover targets fail their health checks. What does a query get?
An answer anyway. With nothing healthy, Route 53 treats the records as healthy and chooses according to the policy, which for failover means the primary.
Why is a failover plan that edits DNS records during an outage fragile?
Editing records uses the Route 53 control plane in one Region. Health-check-driven failover is decided by the globally distributed data plane and needs no change.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.