Set up DNS resolution for hybrid networks in a single-account AWS environment - AWS Prescriptive Guidance

Set up DNS resolution for hybrid networks in a single-account AWS environment

Created by Abdullahi Olaoye (AWS)

Environment: Production

Technologies: Infrastructure

AWS services: Amazon Route 53; Amazon VPC

Summary

This pattern describes how to set up a fully hybrid Domain Name System (DNS) architecture that enables end-to-end DNS resolution of on-premise resources, AWS resources, and internet DNS queries, without administrative overhead. The pattern describes how to set up Amazon Route 53 Resolver forwarding rules that determine where a DNS query that originates from AWS should be sent, based on the domain name. DNS queries for on-premises resources are forwarded to on-premises DNS resolvers. DNS queries for AWS resources and internet DNS queries are resolved by Route 53 Resolver.

This pattern covers hybrid DNS resolution in an AWS single-account environment. For information about setting up outbound DNS queries in an AWS multi-account environment, see the pattern Set up DNS resolution for hybrid networks in a multi-account AWS environment.

Prerequisites and limitations

Prerequisites 

  • An AWS account

  • A virtual private cloud (VPC) in your AWS account

  • A network connection between the on-premises environment and your VPC, through AWS Virtual Private Network (AWS VPN) or AWS Direct Connect

  • IP addresses of your on-premises DNS resolvers (reachable from your VPC)

  • Domain/subdomain name to forward to on-premises resolvers (for example, onprem.mydc.com)

  • Domain/subdomain name for the AWS private hosted zone (for example, myvpc.cloud.com)

Architecture

Target technology stack  

  • Amazon Route 53 private hosted zone

  • Amazon Route 53 Resolver

  • Amazon VPC

  • AWS VPN or Direct Connect

Target architecture

Tools

  • Amazon Route 53 Resolver makes hybrid cloud easier for enterprise customers by enabling seamless DNS query resolution across your entire hybrid cloud. You can create DNS endpoints and conditional forwarding rules to resolve DNS namespaces between your on-premises data center and your VPCs.

  • Amazon Route 53 private hosted zone is a container that holds information about how you want 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.

Epics

TaskDescriptionSkills required

Create a Route 53 private hosted zone for an AWS reserved domain name such as myvpc.cloud.com.

This zone holds the DNS records for AWS resources that should be resolved from the on-premises environment. For instructions, see Creating a private hosted zone in the Route 53 documentation.

Network admin, System admin

Associate the private hosted zone with your VPC.

To enable resources in your VPC to resolve DNS records in this private hosted zone, you must associate your VPC with the hosted zone. For instructions, see Creating a private hosted zone in the Route 53 documentation.

Network admin, System admin
TaskDescriptionSkills required

Create an inbound endpoint.

Route 53 Resolver uses the inbound endpoint to receive DNS queries from on-premises DNS resolvers. For instructions, see Forwarding inbound DNS queries to your VPCs in the Route 53 documentation. Make a note of the inbound endpoint IP address.

Network admin, System admin

Create an outbound endpoint.

Route 53 Resolver uses the outbound endpoint to send DNS queries to on-premises DNS resolvers. For instructions, see Forwarding outbound DNS queries to your network in the Route 53 documentation. Make a note of the output endpoint ID.

Network admin, System admin
TaskDescriptionSkills required

Create a forwarding rule for the on-premises domain.

This rule will instruct Route 53 Resolver to forward any DNS queries for on-premises domains (such as onprem.mydc.com) to on-premises DNS resolvers. To create this rule, you will need the IP addresses of the on-premises DNS resolvers and the outbound endpoint ID for Route 53 Resolver. For instructions, see Managing forwarding rules in the Route 53 documentation.

Network admin, System admin

Associate the forwarding rule with your VPC.

For the forwarding rule to take effect, you must associate the rule with your VPC. Route 53 Resolver then takes the rule into consideration when resolving a domain. For instructions, see Managing forwarding rules in the Route 53 documentation.

Network admin, System admin
TaskDescriptionSkills required

Configure conditional forwarding in the on-premise DNS resolvers.

For DNS queries to be sent to the Route 53 private hosted zone from the on-premises environment, you must configure conditional forwarding in the on-premises DNS resolvers. This instructs the DNS resolvers to forward all DNS queries for the AWS domain (for example, for myvpc.cloud.com) to the inbound endpoint IP address for Route 53 Resolver.

Network admin, System admin
TaskDescriptionSkills required

Test DNS resolution from AWS to the on-premises environment.

From a server in the VPC, perform a DNS query for an on-premises domain (such as server1.onprem.mydc.com).

Network admin, System admin

Test DNS resolution from the on-premises environment to AWS.

From an on-premises server, perform DNS resolution for an AWS domain (such as server1.myvpc.cloud.com).

Network admin, System admin

Related resources