All technological notes.
Domain Name System
Terminologies
Top Level Domain (TLD): .com, .us, .in, .gov, .org, …Second Level Domain (SLD): amazon.com, google.com, …

Amazon Route 53
DNS Records
Each record contains:
Route 53 supports the following DNS record types:
A – maps a hostname to IPv4AAAA – maps a hostname to IPv6CNAME / Canonical Name – maps a hostname to another hostname
NS – Name Servers for the Hosted Zone
Hosted Zones
Types of Hosted Zones:
Public Hosted Zones

Private Hosted Zones




TTL / Time To Live
Strategy
High TTL – e.g., 24 hr
Low TTL – e.g., 60 sec.
TTL is mandatory for each DNS record
Alias records


Alias Records
Automatically recognizes changes in the resource’s IP addresses

AWS Resources (Load Balancer, CloudFront…) expose an AWS hostname:
CNAME:
Alias:
Route 53 record in the same hosted zone




Health Check => Automated DNS Failover:
Calculated Health Checks)CloudWatch Alarms (full control !!) – e.g., throttles of DynamoDB, alarms on RDS, custom metrics, … (helpful for private resources)
About 15 global health checkers will check the endpoint health
3 (default)
256 Child Health ChecksSpecify how many of the health checks need to pass to make the parent pass

CloudWatch Metric and associate a CloudWatch Alarm, then create a Health Check that checks the alarm itself





Routing Policy
DNS does not route any traffic, it only responds to the DNS queries
Health Checks



Use cases:
0 to a record to stop sending traffic to a resource0, then all records will be returned equally








Should create a “Default” record (in case there’s no match on location)




Route 53 Traffic Flow to use this feature

You provide a list of CIDRs for your clients and the corresponding endpoints/locations (user-IP-to-endpoint mappings)

simple policy can return multiple resources but cannot associate with Health Checks.8 healthy records are returned for each Multi-Value query





Domain Registrar typically by paying annual charges (e.g., GoDaddy, Amazon Registrar Inc., …)Domain Registrar usually provides you with a DNS service to manage your DNS recordsBut you can use another DNS service to manage your DNS records
3rd Party Registrar with Amazon Route 53
