If multiple values are returned, a random one is chosen be the client
When Alias enabled, specify only one AWS resource
Can’t be associated with Health Checks
Routing Policies – Weighted
Control the % of the requests that go to each specific resource
Assign each record a relative weight
traffic(%) = Weight for a specific record / sum all the weights for all records
Weights don’t need to sum up to 100
DNS records must have the same name and type
Can be associated with Health Checks
Use cases: Load balancing between regions, testing new application versions…
Assign a weight of 0 to a record to stop sending traffic to a resource
If all records have weight of 0, then all records will be returned equally
Routing Policies - Latency based
Redirected to the resource that has the least latency close to us
Super helpful when latency for users is a priority
Latency is based on traffic betwwen users and AWS Regions
Germany users may be directed to be the US (if that’s the lowest latency)
Can be associated with Health Checks (has a failover capability)
Route 53 - Health Checks
HTTP Health Checks are only for public resources
Health Check => Automated DNS Failover:
Health checks that monitor an endpoint (application, server, other AWS resource)
Health checks that monitor other health checks (Calculated Health Checks)
Health checks that monitor CloudWatch Alarms (full control !!) - e.g throttles of DynamoDB, alarms on RDS, custom metrics, … (helpful for private resources)
Health Checks are integrated with CW metrics
Health Checks – Monitor an Endpoint
About 15 global health checkers will check the endpoint health
Health/Unhealthy Threshold - 3 (default)
Interval - 30 sec (can set to 10 sec - higher cost)
Supported protocol: HTTP, HTTPS and TCP
If > 18% of health checkers report the endpoint is health, Route 53 considers it Health. Otherwise, it’s Unhealty
Ability to choose which locations you want Route 53 to use
Health Checks pass only when the endpoint respond with the 2xx and 3xx status codes
Health Checks can be setup to pass / fail based on the text in the first 5120 bytes of the response
Configure you router/firewall to allow incoming requests from Route 53 Health Checkers
Route 53 - Calculated health checks
Combine the results of multiple Health Checks into a single Health Check
You can use Or, AND, or NOT
Can monitor up to 256 Child Health Checks
Specify how many of the health checks need to pass to make the parent pass
Usage: perform maintenance to your website without causing all health check to fail
Health Checks – Private Hosted Zones
Route 53 health checkers are outside the VPC
They can’t access private endpoints (private VPC or on-premises resource)
You can create a CloudWatch Metric and associate a CloudWatch Alarm, then create a Health Check that checks the alarm itself
Routing Policies - Failover (Active - Passive)
Routing Policies Geolocation
Different from latency-based!
This routing is based on user location
Specify location by COntinent, Country or by US State (if there’s overlaping, most precise location selected)
Should create a “Default” record (in case there’s no match on location)
Use cases: website localization, restrict content distribution, load balancing, …
Can be associated with Health Checks
Routing Policies – Geoproximity
Route traffic to your resources based on the geographic location of users and resources
Ability to shift more traffic to resources based on the defined bias
To change the size of the geographic region, specify bias values
To expand ( 1 to 99): more traffic to resource
To shrink (-1 to -99): less traffic to the resource
Resources can be:
AWS resources (specify AWS region)
Non-AWS resources (specify latitude and longitude)
You must use Route 53 traffic flow to use this feature
Routing Policies - Geoproximity
Routing 53 - Traffic flow
Simplify the process of creating and maintaining records in large and complex configurations
Visual editor to manage complex routing decision trees
Configurations can be saved as TRaffic Flow Policy
Can be applied to different Route 53 Hosted Zones (different domain names)
Supports versioning
Routing Policies - Multi value
Use when routing traffic to multiple resources
Route 53 return multiple value/resources
Can be associated with Health Checks (return only values for healthy resources)
Up to 8 healthy records are returned for each Multi-Value query
Multi-value is not a substitude for having an ELB
Domain Registar vs DNS Service
You buy or register you domain name with a Domain Registar typically by paying annual charges (e.g GoDaddy, Amazone Registar Inc, …)
The Domain Registar ussually provides you with a DNS service to manage your DNS records
But you can use another DNS service to manage your DNS records
Example: purchase the domain from GoDaddy and use Route 53 manage your DNS records
GoDaddy as Registrar & Route 53 as DNS Service
3rd Party Registrar with Amazon Route 53
If you buy your domain on a 3rd party registrar, you can still use Route 53 as the DNS Service provider
Create a Hosted Zone in Route 53
Update NS Records on 3rd party website to use Route 53 Name Servers
Domain Registar != DNS Service
But every Domain Registrar usually comes with some DNS features
A record mapping to IPv4
AAAA record mapping to IPv6
CNAME records shortcuts to hostname
CNAME ftp
CNAME mail
CNAME wwww google.com zone
MX records how email work
MX 10 mail
MX 20 mail.other.domain
TXT records — query txt, spam
TTL 3600 Time to live , numeric value in seconds authoritative
TTL 3600 Non-Authoritative
TTL The time for which a DNS resolver caches a response is set by a value called the time to live (TTL) associated with every record. Amazon Route 53 does not have a default TTL for any record type.
NS: how the root zone delegates control of .org to the .org registry