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 →
- Associate the VPC:
aws route53 associate-vpc-with-hosted-zone(cross-account needscreate-vpc-association-authorizationfirst) - Ensure
enableDnsSupportandenableDnsHostnamesare true on the VPC - Test with
dig namefrom an instance and look at the resolver 169.254.169.253 or VPC+2 - 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.
More on DNS & Service Discovery
A customer types www.example.com in a browser. Walk through how DNS resolves it.BeginnerWhat is the difference between an A record and a CNAME, and when do you use each?BeginnerWhy can't you put a CNAME at the zone apex, and what do you use instead?BeginnerYou are moving a site to a new server. What do you do with DNS to make the cutover smooth?BeginnerHow do you find which nameservers are authoritative for a domain and query them directly?BeginnerWhat DNS records do you set up for company email?Beginner