Design DNS for a hybrid environment where on-prem and AWS must resolve each other's private names.
AdvancedScenarioVPC and Networking
Answer
Situation read → Route 53 Resolver endpoints forward in both directions.
What I'd do →
- Create an inbound endpoint so on-prem DNS can forward
*.aws.internalto it - Create an outbound endpoint and forwarding rule for
corp.example.comto on-prem DNS servers - Share rules via RAM across accounts
- Associate private hosted zones with all VPCs
- Test with
dig @10.0.1.10 db.aws.internalfrom on-prem
Why → Resolver endpoints bridge the VPC's .2 resolver and external servers without running your own DNS fleet.
Interview tip → Put endpoints in at least two AZs.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner