Interview Prep/Networking/DNS & Service Discovery

A Route 53 private hosted zone isn't resolving from a second VPC. What do you check?

IntermediateScenarioDNS & Service Discovery
Answer

Situation read → A private zone only answers for VPCs it is associated with.

What I'd do →

  1. Associate the VPC: aws route53 associate-vpc-with-hosted-zone (cross-account needs create-vpc-association-authorization first)
  2. Ensure enableDnsSupport and enableDnsHostnames are true on the VPC
  3. Test with dig name from an instance and look at the resolver 169.254.169.253 or VPC+2
  4. Check no overlapping private zone with the same name in another association

Why → Without association the VPC resolver does not know the zone.

Interview tip → Mention that cross-account association needs a two-step authorization.

All Networking questions Roadmap: Networking for DevOps

More on DNS & Service Discovery