AWS

4 Mins Read

Route 53 Resolver Guide for Hybrid DNS with Site-to-Site VPN

Voiced by Amazon Polly

When operating in a hybrid cloud environment where your on-premises data centre is connected to AWS via a Site-to-Site VPN or Direct Connect, seamless DNS resolution across environments becomes critical. Amazon Route 53 Resolver acts as a bridge, enabling DNS queries to flow between on-premises systems and AWS-hosted workloads.

Freedom Month Sale — Upgrade Your Skills, Save Big!

  • Up to 80% OFF AWS Courses
  • Up to 30% OFF Microsoft Certs
  • Ends August 31
Act Fast!

What is Route 53 Resolver?

Amazon Route 53 Resolver is the Amazon-provided DNS service within a VPC. It automatically answers DNS queries for AWS resources (like EC2 instances, RDS endpoints, etc.).

Beyond default resolution, Route 53 Resolver supports a hybrid DNS architecture with features like:

  • Inbound endpoints to receive DNS queries from on-prem or other VPCs.
  • Outbound endpoints to forward VPC-originated queries to on-premises resolvers or other networks.
  • Resolver rules for conditional domain-based forwarding.
Diagram showing Route 53 Resolver inbound and outbound endpoints enabling hybrid DNS between a VPC and on‑premises DNS.

Route 53 Resolver enables hybrid DNS with inbound/outbound endpoints and conditional forwarding.

Scenario

When you run workloads both in AWS (inside VPCs) and on-premises (in your data centre), each environment typically has its own DNS system.

  • AWS uses Amazon Route 53 Resolver for DNS inside VPCs.
  • On-premises systems use local DNS servers (like Microsoft DNS, BIND, etc.).
  • To make applications communicate seamlessly, each side must be able to resolve the other’s domain names, for example:
    • An EC2 instance in AWS might need to resolve cloudthat.training (hosted on-prem).
    • A server on-prem might need to resolve aws.internal (hosted in AWS).

The Solution - Route 53 Resolver Endpoints

Amazon Web Services provides Route 53 Resolver Endpoints to enable bidirectional DNS resolution between AWS and on-premises environments via VPN or AWS Direct Connect.

There are two key endpoint types:

  1. Inbound Endpoint
    • Allows on-premises DNS servers to forward queries to AWS.
    • These queries can then resolve private hosted zone records or VPC internal names.
    • Think of it as: “On-prem to AWS”.
  2. Outbound Endpoint
    • Allows AWS resources to forward queries to on-premises DNS servers.
    • Useful when VPC resources need to resolve on-prem names.
    • Think of it as: “AWS to On-prem”.

Conditional Forwarding Rules

You can create rules in Route 53 Resolver to tell AWS where to send queries based on domain names.
For example:

  • Forward all queries ending in onprem.training → On-premises DNS (via outbound endpoint).
  • Forward all queries ending in .aws.internal → Route 53 private zone.

These rules are then associated with one or more VPCs, making the configuration flexible and centralized.

Use Cases

  1. Hybrid DNS resolution
    • EC2 resolves on-prem names via Outbound endpoints and rules.
    • On-prem clients resolve VPC-hosted private names via Inbound endpoints.
  2. Multi-account DNS sharing
    • Use Resource Access Manager (RAM) to share inbound/outbound endpoints and rules across VPCs in different accounts.
    • (You need only one outbound endpoint for multiple VPCs. You don’t have to create an outbound endpoint in each VPC. Instead, you share an outbound endpoint by sharing the rules created for that endpoint with additional accounts using RAM. Endpoints cannot be used across regions.)
  3. High availability and resilience
    • Deploy endpoints across multiple Availability Zones or replicate outbound endpoints; Resolver duplicates queries for redundancy.
  4. Route 53 Resolver DNS Firewall for security

Filter queries based on domain allow/block lists or advanced threat protections, like detecting DNS tunnelling and Domain Generation Algorithm (DGA) based threats.

To achieve this, we’ll configure:

  • Site-to-Site VPN
  • Route 53 Resolver inbound endpoint
  • Route 53 Resolver outbound endpoint
  • Relevant rules and security groups

Prerequisites

  1. A VPC in AWS with private subnets and NAT/GW.
  2. Site-to-Site VPN established with route-based VPN.
  3. On-premises DNS server accessible over VPN (UDP port 53).
  4. AWS IAM permissions to configure Route 53 and VPC settings.

Step-by-Step Setup

Step 1: Set up Site-to-Site VPN

  • Use AWS Virtual Private Gateway or AWS Transit Gateway.
  • Ensure route propagation is enabled to the subnets hosting the endpoints.
  • Confirm DNS traffic (UDP/53) flows across the tunnel.

Step 2: Create a Route 53 Resolver Outbound Endpoint

Used for resolving on-prem DNS names from AWS.

  1. Go to Route 53 Console → Resolver → Endpoints.
  2. Click “Create outbound endpoint”.
  3. Provide:
    • Name: outbound-to-onprem
    • VPC: Select the correct VPC
    • Security group: Allow UDP/53 to on-prem
  4. Add two or more IP addresses (from different AZs).
  5. Click Create.

Step 3: Create a Forwarding Rule for On-Prem Domain

Example: Forward all queries for corp.example.com to on-prem DNS.

  1. Go to Route 53 Resolver → Rules.
  2. Click “Create rule”.
  3. Type: Forward
  4. Domain name: corp.example.com
  5. Target IPs: 192.168.1.10 (on-prem DNS server)
  6. Associate this rule with the VPC.

Step 4: Create Route 53 Resolver Inbound Endpoint

Used for resolving AWS-hosted DNS from on-prem.

  1. Go to Route 53 Console → Resolver → Endpoints.
  2. Click “Create inbound endpoint”.
  3. Provide:
    • Name: inbound-from-onprem
    • VPC: Same as AWS workloads
    • Security group: Allow UDP/53 from on-prem network
  4. Add two or more IP addresses (from different subnets/AZs).
  5. Click Create.

Note: These IPs will be used by your on-prem DNS server as forwarders.

Step 5: Update On-Premises DNS Server

Configure your DNS server to forward queries for AWS domains to the inbound endpoint IPs.

Example (for Windows Server DNS):

  • Go to DNS Manager → Conditional Forwarders
  • Domain: ec2.internal or your private hosted zone
  • Forward to: <inbound endpoint IPs>

Step 6: Validate DNS Resolution

From on-prem, test resolution:

nslookup pc1.aws.internal

From AWS EC2, test resolution to on-prem domain:

nslookup myserver. onprem.training

 Security Considerations

  • Ensure security groups and NACLs allow:
    • Inbound and outbound UDP port 53
    • Internal traffic across VPN subnets
  • Use VPC Flow Logs to debug DNS traffic
  • Monitor with CloudWatch Resolver Query Logs

Troubleshooting Tips

Table listing Route 53 Resolver issues with symptoms, causes, and fixes.

Secure DNS Across Hybrid Networks

Amazon Route 53 Resolver brings flexibility and control to hybrid DNS architectures. When used with Site-to-Site VPN, it ensures reliable and secure DNS resolution across cloud and on-premises systems. As organisations move toward hybrid and multi-account models, mastering this setup becomes an essential skill for cloud architects.

Freedom Month Sale — Discounts That Set You Free!

  • Up to 80% OFF AWS Courses
  • Up to 30% OFF Microsoft Certs
  • Ends August 31
Act Fast!

About CloudThat

CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.

WRITTEN BY Sheeja Narayanan

Sheeja Narayanan is Champion Amazon Authorized Instructor, Microsoft Certified trainer and Senior Subject Matter Expert at CloudThat, specializing in AWS infra and Migration. With 19 years of experience in Training and consulting, she has trained over 2500 professionals/students to upskill in Networking, Windows and Linux administration, AWS, Azure and Vmware. Known for simplifying complex concepts and delivering highly hands-on sessions, she brings deep technical knowledge and practical expertise into every learning experience. Sheeja's passion for training delivery reflects in her unique approach to learning and development.

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!