Route 53

Route 53 is Amazon's DNS service. It allows to register domain names, create hosted zones, manage and create DNS records.

Route 53 is named after Route 66 (one of the original highways across the United States) but is called 53 because DNS operate on port 53.

There are 7 Routing Policies available with Route 53:

  1. Simple Routing

  2. Weighted Routing

  3. Latency-Based Routing

  4. Failover Routing

  5. Geolocation Routing

  6. Geoproximity Routing (Traffic Flow Only)

  7. Multivalue Answer Routing

Routing Policy
Description
Use Case
Multiple Values Support
Health Check Support
Advantages
Limitations

Simple Routing

Routes traffic to a single resource. If multiple values are specified, R53 returns one randomly.

Basic routing to a single resource or random selection from multiple values.

Yes (returns random)

No

• Easy to configure • Low maintenance • Cost-effective

• No intelligent routing • No failover capability • No traffic distribution control

Weighted Routing

Distributes traffic based on assigned weights (0-255).

• A/B testing • Gradual migration • Load distribution

Yes

Yes

• Precise traffic control • Supports gradual migration • Good for testing

• Requires manual weight management • Doesn't consider endpoint health by default

Latency-Based Routing

Routes based on lowest network latency for end user.

Global applications requiring fastest response time.

Yes

Yes

• Improved user experience • Automatic routing to fastest region • Global performance optimization

• Requires resources in multiple regions • Higher cost • Latency data must be gathered first

Failover Routing

Routes traffic to primary resource, fails over to secondary if primary is unhealthy.

Critical applications requiring high availability.

No (Primary/Secondary only)

Yes (Required)

• High availability • Automatic failover • Disaster recovery support

• Limited to primary/secondary setup • Requires health checks (additional cost) • Binary failover only

Geolocation Routing

Routes based on geographic location of users (continent, country, or state).

• Content localization • Restriction compliance • Regional distribution

Yes

Yes

• Geographic control • Regulatory compliance • Content customization

• Requires default location • Location accuracy depends on IP • Complex setup for many regions

Geoproximity Routing

Routes based on geographic location of resources and optionally biases traffic flow.

• Global load balancing • Regional expansion • Traffic shifting across regions

Yes

Yes

• Fine-grained traffic control • Support for bias values • Dynamic regional distribution

• Requires Route 53 Traffic Flow • More expensive • Complex configuration

Multivalue Answer Routing

Returns multiple healthy records selected at random.

Improving availability and load balancing for non-AWS resources.

Yes (up to 8 records)

Yes

• Basic load balancing • Health check support • Improved availability

• Limited to 8 healthy records • Random selection only • No weighted distribution

What is a DNS server?

All top-level domain are in the root zone DB: www.iana.org/domains/root/db

A domain registrar (GoDaddy, AWS, etc.) can assing a domain name under one or more top-level domains.

These domains are registered with InterNIC, a service of ICANN, which enforces uniqueness of domain names across the internet. All domain name are stored in the central WHOIS database.

NS record

Name Server (NS) records are used by top-level domain (TLD) servers (e.g., .com, or .io) to direct traffic to the content DNS server that contains the authoritative DNS records.

SOA Record is Part of Authoritative DNS

Think of it this way:

Authoritative DNS Records = {    
    SOA record           ← Zone authority info    
    NS records           ← Name servers    
    A records            ← IPv4 addresses    
    AAAA records         ← IPv6 addresses    
    CNAME records        ← Aliases    
    MX records           ← Mail servers    
    TXT records          ← Text data    
    ... and more
}

Example

if I type "puglieseweb.com" the browser goes to the ".com" record and looks up the "puglieseweb" record. The browser will be given an NS record (e.g. ns.awsdns.com). ns.awsdns.com is where the SOA is stored.

ns.awsdns.com's A record is an IP Adrress

DNS Records

SOA record

A start of authority (SOA) record includes administrative information about the zone, as defined by the domain name system (DNS):

  • The name of the server that supplied the data for the zone

  • The administrator of the zone

  • The current version of the data file

  • The default number of seconds for the time-to-live file on resource records

A Record

An address (A) record is the fundamental type of DNS record. The A record is used by a computer to translate the name of the domain to an IP Address.

TTL

Time to live (TTL) is the length that a DNS record is cached on either the resolving server or the user's own local PC. This ifluence how fast changes to a DNS records take to propagete through the internet. For example the TTL can be lowered from 24 hours to 5 min the day before a migration of an IP address.

CNAME

A CNAME (canonical name) can be used to resolve one domain name to another. For example, you may have a mobile website with the domain name http://m.puglieseweb.com that is used for when users browse to your domain name on their mobile devices. CNAME allows to map for example http://mobile.puglieseweb.com to resolve to the same IP address of http://m.puglieseweb.com

CNAMEs cannot be used for naked domain names (zone apex record). You cannot have a CNAME for http://puglieseweb.com

Alias Records

Alias records exists within a domain registrar space. Alias records are used to map resource record sets in your hosted zone to load balancers, CloudFront distributions, or S3 buckets that are configured as websites.

Alias records work like a CNAME record in that you can map one DNS name (www.puglieseweb.com) to another "target" DNS name (elb1234.elb.amazonaws.com).

Last updated

Was this helpful?