Route 53 Flashcards
What is the process that takes place when translating a DNS url to an IP?
-With your browser you access example.com.
-Your PCs local DNS server, queries the Root DNS server for the IP of the .com NS.
-Then your local DNS server queries the .com NS, which will be a TLD DNS Server (Top Level Domain DNS Server) for the ip of example.com NS.
-Finally, your local DNS Server, queries the DNS Server for example.com, (Which is a SLD DNS Server. SLD Standing for second level domain), for the example.com website IP Address. And your browser will be able to access the site.
TLDR: if you want to know the example.com A record, first the Root DNS Server will point you to the .com nameserver, then that one being the TLD DNS Server will point you to the example.com nameserver. Then that one being the SLD DNS Server for example.com, will know the A record for the example.com site, and will give you its ip. Finally having the ip you will be able to enter the website, and your local dns server will store it in its cache.
What type of DNS record points to a DNS Server?
NS
Which is the Root DNS Server?
The one that resolves the Top Level Domain records and points you tothe right nameserver: .com .net .org, etc. depending on the site you are trying to access
Which is the TLD DNS Server?
The one that resolves the Second Level Domain records and points you to the right nameserver: example.com example2.net, etc. depending on the site you are trying to access
Which is the SLD DNS Server?
The one that should have the dns record you are looking for, like example.com or web.example.com. The example.com NS will have the example.com A record if it exists.
The SLD DNS Server will point you to the ip of example.com
What is Route 53?
An authoritative DNS (Domain name system).
And a Domain Registrar.
What is a domain registrar?
Where you purchase your domains.
What are the main features of Route 53?
It’s a Global Service. Hosted Zones are global and aws managed towards your aws resources.
It’s highly available.
Scalable
Fully managed by AWS.
Resource Health Checks
It has 100% availability SLA
It’s a registrar too
What does a Route 53 DNS Records contain?
Record name: Domain or subdomain-name
Id
Record type: A, CNAME, etc.
The value (IP Address)
Routing Policy
TTL: Time to live: How long the record is kept in the cache of the resolvers.
What is a AAAA record?
For mapping hostname to ipv6
What is a CNAME record?
For mapping hostname to another hostname.
Where can you not create a CNAME record?
At the apex or root of a zone. Where you have the NS, or A records for example.
For example, you can create a CNAME record for asd.asd.com but not for asd.com.
How does Route 53 divides internal records and external records?
It has public hosted zones and private hosted zones
What are private hosted zones?
Contain records that specify how you route traffic within one VPC (or more VPCs).
Example: intranet2.zonamerica.com or app1.company.internal
How are DNS Zones called in Route 53?
Hosted Zones.
Whats differences are ther in how private and public hosted zones work?
These 2 work exactly the same way, but public hosted zone allows anyone from the internet to query your records, whereas the private hosted zone is only queried from your VPC.
How do you buy a domain in Route 53?
You go to Route 53 > Registered domains > Register domains
Then you choose the name, pricing varies depending on the TLD.
Then you choose duration, (1 or more years). Enable auto renewal.
And finally contact information. You can enable privacy protection to hide the contact information from internet queries for your domain.
What is a SOA Record?
It’s the start of authority, contain useful info for the DNS zone.
How does TTL work?
When a client makes a dns request to route 53, depending on the configured TTL for the record, route 53 asks the client to keep that record in its cache for that time. So it doesn’t request it again until that time has expired.
In route 53 low TTL is more expensive because it implies more request traffic. You get charged for each request in route 53.
What is a good use case for CNAME record in AWS?
To map an aws resources’ hostname to a subdomain of your domain:
you have: lb-1234.us-east-2.elb.amazonaws.com and you want: myapp.mydomain.com
What are alias records?
These are specific records to AWS Route 53.
These records point a hostname to an aws services resources
What extension to DNS functionality does Route 53 provide?
How does it work?
Aliases: Records that map hostnames to aws services resources.
Alias records are always type A or AAAA.
It recognises aws resource ip address changes in real time.
You can’t set TTL.
What is the main difference in CNAME and Alias records functionality?
Alias records can be used at the root/apex of the zone.
Can you set an Alias Record for an EC2 instance DNS Name?
No.
What are some limitations of Route 53 Aliases?
Can’t map to EC2 instance hostname.
What are route 53 routing policies?
They define how route 53 responds to DNS queries.
Route 53 Supports the following Routing Policies:
* Simple
* Weighted
* Failover
* Latency based
* Geolocation
* Multi-Value Answer
* Geoproximity (using Route 53 Traffic Flow feature)
Explain simple routing policy
Can route traffic to one or multiple values. Not much else.