Hosted Zones - vedratna/aws-learning GitHub Wiki

  • Hosted zone is a container that contains group of records (A, AAAA, CNAME, MX .. and so on)
  • 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.
  • A private hosted zone is a container that holds information about how you want Amazon Route 53 to respond to DNS queries for a domain and its subdomains within one or more VPCs that you create with the Amazon VPC service. Here's how private hosted zones work:
  • You create a private hosted zone, such as example.com, and specify the VPCs that you want to associate with the hosted zone.
  • You create records in the hosted zone that determine how Route 53 responds to DNS queries for your domain and subdomains within and among your VPCs. For example, suppose you have a database server that runs on an EC2 instance in one of the VPCs that you associated with your private hosted zone. You create an A or AAAA record, such as db.example.com, and you specify the IP address of the database server.
  • For more information about records, see Working with records. For information about the Amazon VPC requirements for using private hosted zones, see Using private hosted zones in the Amazon VPC User Guide.
  • When an application submits a DNS query for db.example.com, Route 53 returns the corresponding IP address. The application must also be running on an EC2 instance in one of the VPCs that you associated with the example.com private hosted zone.
  • The application uses the IP address that it got from Route 53 to establish a connection with the database server.
  • Inbound endpoint: DNS resolvers on your network can forward DNS queries to Route 53 Resolver via this endpoint - This allows your DNS resolvers to easily resolve domain names for AWS resources such as EC2 instances or records in a Route 53 private hosted zone.
  • Outbound endpoint: Resolver conditionally forwards queries to resolvers on your network via this endpoint - To forward selected queries, you create Resolver rules that specify the domain names for the DNS queries that you want to forward (such as example.com), and the IP addresses of the DNS resolvers on your network that you want to forward the queries to. If a query matches multiple rules (tutorialsdojo.com, portal.tutorialsdojo.com), Resolver chooses the rule with the most specific match (portal.tutorialsdojo.com) and forwards the query to the IP addresses that you specified in that rule. You create conditional forwarding rules (also known as forwarding rules) when you want to forward DNS queries for specified domain names to DNS resolvers on your network.