AWS Route 53 is Amazon’s scalable and highly reliable Domain Name System (DNS) web service. It manages domains by logically grouping them into ‘hosted zones’, allowing you to host your own DNS on the cloud and configure DNS routing to resources within your Virtual Private Cloud (VPC) and Amazon S3 buckets.
A hosted zone in Route 53 is a container that holds information about how to respond to DNS queries for a domain and its subdomains. There are two types of hosted zones: Public Hosted Zones and Private Hosted Zones for Amazon VPC.
Public Hosted Zones
Public hosted zones are meant to route traffic on the internet. When you create a public hosted zone, Route 53 creates a set of four name servers. These servers have a combination of your domain name and a suffix such as .com, .net, etc.
Private Hosted Zones
Private hosted zones, on the other hand, are meant to route traffic within or between your Amazon VPCs. Unlike public hosted zones that use internet-facing name servers, private hosted zones use Amazon-provided DNS servers within the VPC.
Setting up Route 53 Hosted Zones
To create a hosted zone, simply navigate to Route 53 in the AWS Management Console, and follow the prompt to create a hosted zone. Here, you will input your domain, select the type of hosted zone (public or private), and configure other settings as necessary.
Route 53 Records
Route 53 records determine on how Route 53 responds to DNS queries for your domain. Following are some common types of Route 53 records.
- A record: These direct a hostname to an IPv4 IP address.
- AAAA record: They direct a hostname to an IPv6 IP address.
- CNAME record: This stands for Canonical Name record, and this provides mapping of alias names to true or canonical domain names.
- MX record: MX stands for Mail Exchange record. It is used to inform incoming mail servers on which server it should be delivered to.
Configuring Route 53 Records
Adding records to a hosted zone is straightforward too. After creating a hosted zone, navigate to its ‘Records’ tab and click ‘Create Record’. Here, you can input your record name, type, and value, and configure optional settings such as TTL and routing policy.
A typical A record might look like this:
Name | Type | TTL | Value |
mydomain | A | 86400 | 192.0.2.123 |
This indicates that Route 53 will direct requests for ‘mydomain’ to the IPv4 address ‘192.0.2.123’, with a TTL (time to live) of 86400 seconds.
In summary, understanding Route 53 hosted zones and records is vital for managing AWS environments and for passing the AWS Certified SysOps Administrator – Associate (SOA-C02) exam. Be sure to take the time to practice configuring these resources, as the hands-on experience will solidify your understanding.
Practice Test
True or False: Amazon Route 53 is a scalable DNS service.
- True
- False
Answer: True.
Explanation: Amazon Route 53 is designed to be a scalable DNS service providing reliable routing to the infrastructure.
Multiple select: What can you do with Amazon Route 53?
- A) Configure DNS records
- B) Connect Mail Servers
- C) Manage security groups
- D) Register domain names
Answer: A, B, D
Explanation: Amazon Route 53 allows you to configure DNS records, connect mail servers, and register domain names, but it does not manage security groups.
True or False: Amazon Route 53 cannot be used to health check your resources.
- True
- False
Answer: False.
Explanation: Amazon Route 53 can perform health checks on your resources to verify if they’re up and running.
Single select: What does a Hosted Zone in Route 53 represent?
- A) A domain name
- B) An EC2 instance
- C) A resource record
- D) A network gateway
Answer: A. A domain name
Explanation: In Amazon Route 53, a Hosted Zone represents a domain name.
Single select: What type of resource record is used for email delivery?
- A) CNAME
- B) SOA
- C) MX
- D) A
Answer: C. MX
Explanation: MX or mail exchange record is used for email server routing and email delivery.
Multiple select: Which DNS record types does Amazon Route 53 support?
- A) A
- B) B
- C) C
- D) MX
Answer: A, D
Explanation: Amazon Route 53 includes DNS record types such as A (address record) and MX (mail exchange record). There is no B or C DNS record type.
Single select: What does an SOA record represent in Route 53?
- A) Start of Authority
- B) Source of Authority
- C) Start of Authentication
- D) Source of Authentication
Answer: A. Start of Authority
Explanation: In Amazon Route 53, SOA signifies Start of Authority, which is a record type in DNS.
True or False: Route 53 does not support IPv6 addresses.
- True
- False
Answer: False.
Explanation: Amazon Route 53 does support IPv6 addresses with AAAA records.
True or False: Route 53 is a universal naming system.
- True
- False
Answer: True.
Explanation: Route 53 is a service that translates friendly domain names to numeric IP addresses, acting as a universal naming system.
Multiple select: What can Route 53 do in terms of load balancing?
- A) Load balance across multiple resources
- B) Redirect traffic to healthy resources
- C) Allocate resources based on demand
- D) Register new domain names
Answer: A, B
Explanation: Route 53 can load balance across multiple resources and redirect traffic away from unhealthy resources. It does not allocate resources based on demand, and while Route 53 can register domain names, it is not related to load balancing.
Interview Questions
What is Amazon Route 53?
Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service provided by Amazon Web Services.
What is the purpose of Route 53 Hosted Zones?
A Route 53 Hosted Zone is a container for DNS records of the same domain. It holds information about how you want to route traffic for a specific domain, such as example.com, and all its subdomains (mail.example.com, www.example.com).
How many Route 53 hosted zones can you create per AWS account?
By default, you can create up to 500 Route 53 hosted zones per AWS account.
What is the fundamental purpose of Route 53 Records?
Route 53 Records, also known as resource records, are used to define how you want to route your domain’s traffic. They contain routing information for your domain or a subdomain within a hosted zone.
How many Route 53 records can you create per hosted zone?
The maximum number of Route 53 records you can create per hosted zone is 10,000.
Can you create Route 53 Hosted Zones for a domain that you do not own?
Yes, you can create Route 53 Hosted Zones for any domain, even if you don’t own it. However, the domain will not resolve properly until you transfer the DNS service for the domain to AWS Route 53.
What are the two types of Route 53 Hosted Zones?
The two types of Route 53 Hosted Zones are Public Hosted Zones and Private Hosted Zones.
What are Alias Records in Route 53?
Alias records in Route 53 are used to point your domain or subdomain to another AWS resource such as a CloudFront distribution, an Elastic Beanstalk environment, an S3 bucket, an Amazon RDS instance or another record in the same hosted zone.
Can you use Route 53 to route traffic to an EC2 instance?
Yes, Route 53 can effectively route traffic to an EC2 instance. However, it’s recommended to use an Elastic IP address or a load balancer for persistent connections.
What is DNS failover in the context of AWS Route 53?
DNS failover is a Route 53 feature that helps in routing traffic away from resources that might be unhealthy to another available resource.
How is health check status determined in AWS Route 53?
AWS Route 53 determines the health check status based on the number of health checkers that report the endpoint as either healthy or unhealthy.
What is Latency Routing in AWS Route 53?
Latency-based routing in AWS Route 53 allows you to route your traffic to the server with the least network delay, based on the geographic location of your users.
Can you use both IPv4 and IPv6 in AWS Route 53?
Yes, AWS Route 53 supports both IPv4 (Internet Protocol version 4) and IPv6 (Internet Protocol version 6).
What is the function of a CNAME record in AWS Route 53?
A CNAME record in AWS Route 53 is used to redirect queries for one domain to another domain. It stands for Canonical Name.
How does weighted routing policy work in AWS Route 53?
A weighted routing policy in AWS Route 53 distributes traffic based on the relative weights assigned to each resource. This allows for load balancing and testing new versions of your application by controlling the proportion of traffic reaching each resource.