Route 53
A deep dive into Route 53 - Practical ver.
What is Amazon Route 53?
: A DNS (Domain Name Service) provided by AWS
Supported DNS record types
: The AWS docs provide detailed information, but here's a brief summary of the commonly used ones
A record typeIPv4 address
AAAA record typeIPv6 address
CNAME record typeWhen a domain address points to another address
MX record typeAs the name suggests, mail server
SPF record typeMail related
TXT record typeWhen queried, it returns one or more strings wrapped in
"Usage
reverse dns lookup
auth
A method to verify that the domain owner is legitimate
Send an email to the domain owner
Authenticate by connecting a mail service (MX record type, etc.) to your domain and receiving the email
This method is a bit cumbersome, so the
TXT record typebelow is used instead
Have the owner enter a token in the
TXT recordAuthenticate by having them enter a value (token) you sent
This method is more preferred nowadays
alias
A feature exclusive to Route 53
Used to connect AWS services
LBs should NOT be connected using
CNAMEWhy?
Because the LB domain changes constantly
However, this is specific to the cloud environment!
ALBs are composed of Instances
An Instance has 2 + a IPs
Why? Because more IPs are assigned when traffic is high
So multiple IPs are mapped and managed under a domain address
Why use alias?
If you use
CNAMEFrom the connecting client's perspective, when it queries for domain information, it has to ask for the final destination and then ask again!
Why?
CNAMEfollows chains of connections until it reaches the terminal recordWhich is the IP
The reason for using
aliasinstead ofCNAMEConvenience
CNAMErequires multiple queries which is inconvenient, but usingaliasmakes it simplerHow?
Since AWS services are all its own resources, Route 53 queries on your behalf and returns the final IP in a single lookup
Performance
Performance is slightly better from the client's perspective
Cost
Route 53 billing structure
Query cost: A record < CNAME
CNAME is more expensive
alias cost == A record
Route 53 Tips
A single domain address can have multiple record types
You can add additional records to the same domain!
If you want to add records of the same record type, you can register them as multiline
Don't create two separate records!
Last updated