ROUTE 53 Flashcards
What is a Zone File
a Zone file a database that contains all the DNS information of a domain
Top Level Domains, with Examples
A top-level domain (TLD) is one of the domains at the highest level in the hierarchical Domain Name System of the Internet after the root domain.
.com, .io, .net
When a Domain is Registered, two things
- Route 53 checks if the domain is available
- Creates a Zone File for the domain(a database that contains all the DNS information of a domain)
Private and Public Hosted Zones
Public - Records are accessible from anywhere
Private - Records are only accessible from within vpc, also good for hosting sensitive private DNS records
Public Hosted Zone
Public Hosted Zone is a DNS Database. Zone files hosted by Route53 on Public Name Servers
Notes from AWS
A public hosted zone is a container that holds information about how you want to route traffic on the internet for a specific domain, such as example.com, and its subdomains (acme.example.com, zenith.example.com). You get a public hosted zone in one of two ways:
When you register a domain with Route 53, we create a hosted zone for you automatically.
When you transfer DNS service for an existing domain to Route 53, you start by creating a hosted zone for the domain. For more information, see Making Amazon Route 53 the DNS service for an existing domain.
In both cases, you then create records in the hosted zone to specify how you want to route traffic for the domain and subdomains. For example, you might create a record to route traffic for www.example.com to a CloudFront distribution or to a web server in your data center. For more information about records, see Working with records.
This topic explains how to use the Amazon Route 53 console to create, list, and delete public hosted zones.
A public hosted zone is a container that holds information about how you want to route traffic on the internet for a specific domain, such as example.com, and its subdomains (acme.example.com, zenith.example.com). You get a public hosted zone in one of two ways:
When you register a domain with Route 53, we create a hosted zone for you automatically.
When you transfer DNS service for an existing domain to Route 53, you start by creating a hosted zone for the domain. For more information, see Making Amazon Route 53 the DNS service for an existing domain.
In both cases, you then create records in the hosted zone to specify how you want to route traffic for the domain and subdomains. For example, you might create a record to route traffic for www.example.com to a CloudFront distribution or to a web server in your data center. For more information about records, see Working with records.
This topic explains how to use the Amazon Route 53 console to create, list, and delete public hosted zones.
When you register a Hosted Zone
Route 53 Allocates 4 public Name Servers
Accessing Route 53
Instances within VPC can query the Hosted Zone using Route 53resolver+2, provided the VPC DNS is enabled
Split View
Hosted Zone Split view allows for the use of thesame Name Server(Domain name) for both private and public view with each view resolving to a differnt Record. Both private users(from VPC) and Public users use thesame DNS name to access the NS but get customized Records.
Alias Record
This record resolves a domain name to aws services that do not have ip Addresses but rather issues naked domain
Simple Routing Heath check settings
Does not support health checks
Healthy Healthcheck Threshold
Any report of threshold above 18% is considered healthy
Failover Routing Policy
For Active-Passive architecture. Eg A dynamic website using s3 as backup
Websites on Ec2 Instance tips
Runing a Website or DB on EC2, you must use an Elastic IP
Failover records steps
- Create the twoRecords(Websites)
- Ensure the Website on an EC2 Instance has an elastic IP address.
- Setup the Static website on S3
- Create bucket and upload files
- Enable Static web Hosting
- Unblock public view
- Add Bucket Policy(Remembe Resource ARN must be included in the Policy. - Create Health checks on Route 53 Hosted Zones for primary website on the Main server/Record ie, EC2(Elastic IP)
- Create failover record on route 53 for Primary Record and Secondary S3(must have thesame Domain Name of our Main Domain resgistered in Route 53
Hosted Zone
A hosted zone is a container for records, and records contain information about how you want to route traffic for a specific domain, such as example.com, and its subdomains (acme.example.com, zenith.example.com). A hosted zone and the corresponding domain have the same name. There are two types of hosted zones: