What Is Amazon Route 53? Understand DNS Routing and Failover
Amazon Route 53 is an AWS service for domain registration, DNS responses, and health checks. It can act as the authoritative DNS service that maps a web name to resource information and lets you choose which target information to return for a DNS query. Route 53 does not relay a user’s connection like a load balancer, however, so you need to account for health detection and DNS caching when planning a traffic shift.
Amazon Route 53 is an AWS service for domain registration, DNS responses, and health checks. It can act as the authoritative DNS service that maps a web name to resource information and lets you choose which target information to return for a DNS query. Route 53 does not relay a user’s connection like a load balancer, however, so you need to account for health detection and DNS caching when planning a traffic shift.
How does Route 53 direct a request?
When someone enters example.com in a browser, the device asks a DNS resolver for the address associated with that name. The resolver follows the domain’s delegation to query authoritative DNS servers, which respond with the information in the DNS record for that name. The device then connects to the web service using the returned IP address or other target information. When Route 53 is the DNS service, Route 53 name servers act as the authoritative servers and answer for the domain and its subdomains using records in the hosted zone.
Here, “routing” usually means selecting a DNS response. Route 53 does not receive the web request body and forward it to a backend. DNS resolvers and devices can cache responses, and changing a DNS answer does not automatically move connections that are already open. A Route 53 policy therefore influences the destination for a later connection or DNS lookup; it is different from a traffic proxy that redistributes every request in real time.
What are hosted zones and records?
A hosted zone is a container for DNS records for a domain and its subdomains. A record defines what information to return for a particular name. For example, an A record for www.example.com can return an IPv4 address, while an AAAA record can return an IPv6 address. For some AWS resources, you can use a Route 53 alias record.
Use a public hosted zone for names that should be resolvable from the internet. A private hosted zone is associated with one or more VPCs and resolves names only within those VPCs, such as mapping db.internal.example.com to a private database address. Creating a private zone does not make its records visible to internet users; queries need to come from an associated VPC or an appropriate hybrid DNS path.
Domain registration, DNS hosting, and hosting website content are separate functions. Registering a domain with Route 53 does not create a web server or site content. A domain registered elsewhere can also use Route 53 for DNS if its delegation is configured correctly. Keep the registrar’s name-server settings aligned with the name servers assigned to the Route 53 hosted zone.
How should you choose a routing policy?
A routing policy determines which record Route 53 returns for a DNS query with a given name. Simple routing is the basic option for one target. When you have multiple targets, choose a policy that fits the goal.
| Policy | Main use | Consideration |
|---|---|---|
| Weighted | Divide DNS responses among targets by assigned proportions for gradual rollout or testing | The weights govern DNS answer selection. Resolver caching means actual application-request proportions may differ. |
| Latency-based | Select a Region that Route 53’s latency data indicates will provide lower latency when the same service runs in multiple AWS Regions | User-perceived network latency is not guaranteed to match the service’s regional measurements. |
| Failover | Configure an active-passive primary and secondary target | Health detection and DNS caching mean a change will not reach every client immediately. |
| Geolocation or geoproximity | Select answers based on the query user’s location or the locations of resources | Design regional service behavior and a default response for unmatched locations. |
| Multivalue answer | Return several healthy records in a DNS response | This is DNS-level multiple-answer behavior, not a substitute for an application load balancer. |
With weighted routing, you assign relative weights to multiple records with the same name and record type. For example, weights of 10 and 90 set the relative selection proportions based on their sum. This can help shift a small share of DNS answers to a new version, but DNS caching and client behavior mean it should not be interpreted as an exact 10-to-90 split of application requests at every moment. If you need strict per-request control, also consider an application load balancer or proxy.
Latency-based routing selects a response using Route 53’s latency data when the same function is available in multiple Regions. It does not mean that Route 53 measures every possible network path in real time for every request and always chooses the fastest server. Account for how user location is estimated, the scope of the measurement data, and DNS caching. Application concerns such as database replication and session continuity also need separate solutions.
How do health checks work with failover?
A Route 53 health check can monitor a configured endpoint. When health checks are associated with a group of records and a failover policy is configured, Route 53 can be set to omit unhealthy targets from DNS responses and choose healthy ones. Some AWS alias-record configurations can instead evaluate the health of the target resource; check which mechanism applies to the resource and record type you use.
A health check does not automatically repair the application or make DNS changes take effect instantly. Choose a check that represents whether the service can handle user requests, rather than merely whether a port responds. A health check probes the endpoint configured in the health-check settings; it does not necessarily check the value written in the record. If the primary is unhealthy and the secondary record has no health check, Route 53 can return the secondary without verifying its health. If both primary and secondary are considered unhealthy, Route 53 can return the primary record, so plan for that case too. Resolvers with an unexpired DNS TTL and clients with existing connections can continue using an earlier answer. Test whether the secondary environment can handle the real load, whether its data is current, and how traffic should return after recovery.
What do VPC Resolver and private DNS do?
Route 53 VPC Resolver is the recursive resolver that helps resources in a VPC look up public DNS names, VPC-specific names, and records in private hosted zones. AWS documentation says it is available by default in VPCs. To resolve names between on-premises DNS and VPCs, you can configure inbound and outbound Resolver endpoints and conditional forwarding rules.
For example, suppose an application in a VPC must resolve db.corp.example, but the authoritative DNS server for that name is in a corporate data center. A Resolver forwarding rule can send queries for that domain through an outbound endpoint to the corporate DNS server. Conversely, an inbound path may be needed when the corporate network must resolve private names in a VPC. This internal name-resolution setup is separate from domain registration and public DNS records.
What should you check before adopting Route 53?
For each domain name, first decide whether it serves a public site or an internal VPC service, then identify the hosted zone and record owner. Select a policy based on the real goal: simple for one target, weighted for gradual rollout, latency-based for multi-Region response selection, or failover for a primary and standby. If you use health checks, confirm that their signal represents service health, and account for TTLs, client caching, and existing connections.
Finally, rehearse the operating procedure. After changing a record, verify the DNS answer you expect. Simulate a failed health check, confirm which record Route 53 returns, and make sure the secondary can serve requests. A DNS-only failover rehearsal may be insufficient: test sessions, data replication, certificates, firewalls, and application dependencies together to assess actual recovery capability.
References
[Amazon Route 53 concepts: DNS, hosted zones, policies, TTL, and health checks](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-concepts.html)
[Routing traffic to resources with Route 53](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-routing-traffic-to-resources.html)
[Weighted routing](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-weighted.html)
[Latency-based routing](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-latency.html)
[Working with private hosted zones](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html)
[Route 53 DNS failover configuration](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring.html)
[Troubleshooting DNS changes and TTL caching](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/troubleshooting-new-dns-settings-not-in-effect.html)
[Route 53 VPC Resolver](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver.html)