Route53 - DNS 101 Flashcards
If you’ve used the Internet…
…you’ve used DNS
DNS is used to convert…
…human friendly domain names into an IP address
IP addresses are used by…
…computers to identify each other on the network
IP address forms
IPv4, IPv6
IPv6 was created because…
…we were running out of IPv4 addresses
Top Level Domains - example
“.com” in google.com
Second word in a domain name
second level domain name
Top level domain names controlled by…
…Internet Assigned Numbers Authority (IANA) in a root zone database (DB of all available top level domains)
Domain Registrars
ensure that domain names aren’t duplicated. Each domain name becomes registered in a central database known as the WhoIS database
SOA Records
Start of Authority Records
SOA Record stores information about…
- the name of the server that supplied the data for the zone
- the administrator of the zone (contact details, owner name)
- current version of the data file
- number of seconds a secondary name server should wait before checking for updates
- the number of seconds a secondary name server should wait before retrying a failed zone transfer
- the maximum number of seconds that a secondary name server can use data before it must either be refreshed or expire
- the default number of seconds for the time-to-live file on resource records
NS records
stands for Name Server records, used by Top Level Domain servers to direct traffic to the Content DNS server which contains the authoritative DNS records
A records
Address Record. A record used by computer to translate the name of the domain to the IP address
Do ELBs have an IPv4 or IPv6 address?
No, they have just a DNS name.
Can you use an A record to resolve to an ELB?
No, use an Alias Record
TTL record
The length that a DNS record is cached on either the Resolving Server or the user’s own local PC is equal to the value of the Time To Live in seconds.
The lower the TTL…
…the faster changes to DNS records take to propagate throughout the internet
If adding additional A records, servers to production website or migrate production website to AWS…
…DNS change required, will take time to propagate to all end users. Decrease TTL to 300 seconds
CNAMES (Canonical Name)
resolve one domain name to another
Alias Records
map record resource sets in your hosted zone to ELBs, CloudFront distributions, or S3 buckets that are configured as websites
Key difference between CNAMEs and Alias Records
CNAME can’t be used for naked domain names (zone apex). A records or Alias Records can
Alias resource record sets can save you time because…
…Route53 automatically recognizes changes in the record sets that the alias resource record set refers to
Example of how Alias resource record sets can save you time
Alias resource record set for example.com points to an ELB at lb1-1234.us-east-1.elb.amazonaws.com. If IP of ELB changes, Route53 will reflect those changes in the DNS answers for example.com w/o any changes to the hosted zone that contains resource record sets for example.com
Do ELBs have a pre-defined IPv4 address?
No, you resolve to them using a DNS name
If you make a request to Route53, CNAMEs…
…will be associated w/ a charge. On the other hand, Alias Records won’t