Amazon Route 53

Also known as: Route 53

On this page 7

Amazon Route 53 is the managed Domain Name System (DNS) service of Amazon Web Services, combining authoritative DNS hosting, domain registration, health checking and resolver features in one service. In cloud networking, Route 53 is the layer that translates names such as api.example.com into IP addresses or AWS resources and decides which endpoint receives each user.

The name refers to TCP and UDP port 53, the standard port for DNS. AWS backs the authoritative service with a 100 percent availability service level agreement, which is possible because each hosted zone is served by four name servers spread across separate top-level domains and a global anycast network.

How Route 53 answers DNS queries

Route 53 acts as an authoritative DNS server for the domains it hosts. When a recursive resolver asks for a name, the query reaches the nearest Route 53 edge location through anycast routing, and the service returns the record set stored in the matching hosted zone, together with a time to live (TTL) that tells resolvers how long to cache it.

Hosted zones come in two kinds. A public hosted zone answers queries from the internet, while a private hosted zone answers only queries that originate inside associated VPCs. The same name can exist in both, a pattern called split-horizon DNS, so internal clients receive private addresses and external clients receive public ones.

The following table describes the main building blocks of the service.

CapabilityFunctionTypical use
Public hosted zoneAuthoritative DNS for internet namesWebsites and public APIs
Private hosted zoneDNS visible only inside VPCsInternal service names
Domain registrationRegisters and renews domain namesKeeping registrar and DNS together
Health checksProbes endpoints or alarmsFailover and routing decisions
Route 53 ResolverRecursive DNS inside a VPCHybrid DNS with on-premises servers
Resolver DNS FirewallFilters outbound DNS queriesBlocking malicious domains
Main Route 53 capabilities

Record types and alias records

Route 53 supports the standard DNS record types, including A, AAAA, CNAME, MX, TXT, NS, SOA, SRV and CAA, plus DNSSEC signing for public zones. Its distinctive addition is the alias record, a Route 53 extension that points a name directly to an AWS resource.

Alias records solve the zone apex problem. The DNS standard forbids a CNAME at the root of a domain such as example.com, yet a load balancer has no fixed IP address. An alias record returns the current addresses of the target internally, works at the apex, follows changes automatically and incurs no query charge for most AWS targets.

PropertyAlias recordCNAME record
Zone apex supportYesNo
Allowed targetsSelected AWS resources and records in the zoneAny domain name
Extra resolver lookupNone, addresses returned directlyRequired to resolve the target
Query chargesFree for most AWS targetsCharged per query
Standard DNS featureNo, Route 53 specificYes
Alias record compared with CNAME

Routing policies and health checks

A routing policy determines which answer Route 53 returns when several records share a name. Combined with health checks, these policies turn DNS into a global traffic management tool, although decisions are only as fast as resolver caching allows.

PolicyDecision basisWhen to use it
SimpleOne record set, no logicSingle endpoint
WeightedRelative weights per recordCanary or blue-green releases
Latency-basedLowest measured latency to an AWS RegionMulti-Region applications
FailoverPrimary health, then secondaryActive-passive disaster recovery
GeolocationContinent, country or state of the userLegal or language requirements
GeoproximityDistance with an adjustable biasShifting load between Regions
Multivalue answerUp to eight healthy recordsSimple client-side load spreading
IP-basedClient CIDR blocksRouting by known ISP ranges
Route 53 routing policies

Health checks probe an endpoint over HTTP, HTTPS or TCP from checkers in several locations, typically every 30 seconds or 10 seconds at higher cost. An endpoint is marked unhealthy after a configurable number of failures, by default three. Calculated checks and CloudWatch alarm checks extend this to private resources that probes cannot reach.

Route 53 in hybrid and multi-VPC networks

Route 53 Resolver is the recursive DNS service at the VPC base address plus two. Inbound endpoints let on-premises servers resolve private hosted zones, while outbound endpoints with forwarding rules send queries for corporate domains to on-premises DNS over a VPN gateway or a dedicated interconnect.

In a hub-and-spoke network, resolver rules and private hosted zones can be shared across accounts with AWS Resource Access Manager, giving every spoke VPC consistent name resolution without duplicating zones. Route 53 differs from AWS Global Accelerator, which routes at the network layer through static anycast IP addresses and is not affected by DNS caching.

Limitations and common mistakes

DNS-based routing has inherent limits that teams sometimes overlook. Resolvers and clients may ignore TTLs, so failover can take minutes for some users, and Route 53 never sees application-level errors unless a health check tests them explicitly.

  • Long TTLs on records used for failover delay recovery; values of 60 seconds or less are common for such records.
  • Shallow health checks that test only a TCP port can report a healthy endpoint while the application fails.
  • Deleting a hosted zone without removing delegated NS records at the registrar invites subdomain takeover.
  • Geolocation policies without a default record return no answer to users from unmapped locations.
  • Associating a private hosted zone with the wrong VPC leads to silent resolution failures inside workloads.

A non-technical view

Every website name must be turned into a numeric address before a computer can connect to it. Amazon Route 53 is a very large, very reliable phone book for these names, run by Amazon on servers around the world.

It can also act like a smart switchboard operator. If one office is closed or overloaded, it sends callers to another office that is open, or to the one closest to them. Visitors notice only that the website keeps working and loads quickly.

A concrete example

An online ticketing company runs its web application in two AWS Regions, one in Europe and one in North America, each behind an Application Load Balancer. Its domain is hosted in a Route 53 public hosted zone.

The team creates latency-based alias records at the zone apex pointing to both load balancers, each tied to an HTTPS health check that requests a /health page every 10 seconds. The records use a TTL of 60 seconds. Internally, a private hosted zone resolves database and cache names for both VPCs.

During a regional outage, the European health check fails three times in a row, and Route 53 stops returning the European endpoint. Most European visitors are served from North America within about two minutes, with somewhat higher latency but no manual intervention.