EC2 instances in a newly created VPC can't resolve `db.internal.example.com`; instances in the old VPC can.
IntermediateTroubleshootingDNS, TLS and certificates
Answer
Likely causes → The Route 53 private hosted zone is associated only with the old VPC, or the new VPC has enableDnsSupport/enableDnsHostnames turned off. If the zone lives in another account, the cross-account association was never authorized.
Diagnose →
aws route53 get-hosted-zone --id $ZONE_ID --query 'VPCs'
aws ec2 describe-vpc-attribute --vpc-id $VPC --attribute enableDnsSupport
dig db.internal.example.com @169.254.169.253
Fix →
aws route53 associate-vpc-with-hosted-zone --hosted-zone-id $ZONE_ID \
--vpc VPCRegion=ap-south-1,VPCId=$NEW_VPC
Turn on both DNS attributes on the VPC. For cross-account, run create-vpc-association-authorization in the zone's account first.
Prevent → Make zone association part of the VPC Terraform module, or use Route 53 Resolver rules shared through RAM so every new VPC gets internal DNS automatically.
More on DNS, TLS and certificates
Monday morning every browser shows "NET::ERR_CERT_DATE_INVALID" for app.example.com; the cert is from Let's Encrypt via cert-manager.BeginnerYou changed the A record for api.example.com to a new load balancer an hour ago, but some users still reach the old server.BeginnerA cert-manager Certificate is stuck at "Issuing"; the Challenge says "Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200'".IntermediateAfter switching to a slim base image, the service fails every outbound HTTPS call with "x509: certificate signed by unknown authority".BeginnerBrowsers load the site fine, but Android apps and `curl` from servers fail with "unable to verify the first certificate" or "unable to get local issuer certificate".Intermediate`https://example.com` works, but `https://www.example.com` shows "NET::ERR_CERT_COMMON_NAME_INVALID".Beginner