Route 53 records and routing
How a name becomes an address
DNS (Domain Name System) helps a client find the network destination for a name. Amazon Route 53 provides authoritative DNS, among other capabilities. A recursive resolver finds and caches answers for clients; an authoritative server publishes records for a zone. For a fictional bookstore, DNS answers the question “where is the site?”; HTTP later requests the page. All examples are offline, using reserved names and documentation addresses.
Browser -> recursive resolver -> authoritative DNSBrowser -> web endpoint (HTTP/HTTPS)Hosted zones and record types
A public hosted zone serves public DNS once the domain is correctly delegated. A private hosted zone supplies DNS within associated VPCs via the appropriate resolver configuration. Creating a public zone does not register a domain or update its registrar automatically. NS records identify authoritative name servers; SOA describes zone authority metadata. A maps to IPv4, AAAA to IPv6, CNAME to another name, MX identifies mail exchangers and TXT holds text used for purposes such as verification. These illustrative records are not a deployable zone.
shop.example.com. 60 IN A 192.0.2.10shop.example.com. 60 IN AAAA 2001:db8::10www.example.com. 60 IN CNAME shop.example.com.Alias records and the zone apex
The apex is the zone name itself, such as example.com. A normal CNAME cannot be used there because the apex must also carry other records. A Route 53 alias is an AWS-specific record mechanism that can point to eligible AWS resources or compatible records in the same zone. An A alias can point the apex to a supported CloudFront distribution; AAAA can be added when IPv6 is enabled on that distribution. Do not treat aliases as arbitrary CNAMEs. The alias TTL follows the applicable target rules, not a freely chosen TTL for every alias.
example.com. A (Alias) -> fictional CloudFront distributionTTL and routing decisions
TTL (time to live) controls how long a DNS answer may normally remain cached. In a toy resolver, an answer obtained at second 0 with TTL 60 remains valid at second 59 and expires at 60. A change at second 20 does not immediately replace the cached answer. Simple routing suits a basic record; weighted routing distributes DNS answers by relative weights; latency routing uses AWS latency information; failover routing selects primary or secondary according to health configuration. Geolocation uses requester location; geoproximity considers resource/requester geography and bias; multivalue answers can return several healthy records. These policies select DNS answers, not individual HTTP requests.
t=0: cache A=192.0.2.10, TTL=60t=20: authority changes to 192.0.2.20t=59: toy resolver still returns 192.0.2.10t=60: toy resolver refreshes to 192.0.2.20Health checks and safe diagnosis
Health checks can influence routing when connected to supported records; alias target health evaluation is a separate mechanism with target-specific restrictions. A healthy DNS target does not prove that every application operation works. Cached answers may delay failover; actual behavior also depends on resolver and health evaluation. First distinguish NXDOMAIN (name not found), a missing record type, timeout, and an HTTP error after resolution. For practice, choose failover for active/passive service and explain why lowering TTL before an approved change helps but cannot guarantee instant recovery. No real DNS queries, registration or changes are needed.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Route 53 records and routing — knowledge check
Apply the lesson concepts to the fictional bookstore.
Which component publishes records for a delegated public zone?
Which record maps a name to an IPv6 address?
A zone apex must point to an eligible CloudFront distribution. Which Route 53 choice fits?
The toy resolver cached an answer at t=0 for 60 seconds. Authority changes at t=20. What happens at t=59?
Which policy is intended for a primary and backup DNS endpoint with configured health?