Public zone example.com already has the public www.example.com A record and no internal-name records. The VPC has enableDnsSupport and enableDnsHostnames set true; EC2 uses VPC Resolver with no conflicting private zones or forwarding rules.
Resolve db.internal.example.com to 10.30.0.10 inside the VPC without publishing its private address. Retain normal resolution of www.example.com from the VPC. No hybrid inbound Resolver is configured here.
Which zone and record configuration is appropriate?
Associate a private zone for the internal subdomain and resolve its records without shadowing other public names.
Detailed explanation
An RFC1918 address does not make a public DNS record confidential. Distinguish address reachability from DNS visibility.
Here the matching private zone has no www name, so it returns NXDOMAIN rather than falling back to public DNS. A broad parent zone can affect existing public names.
Only the internal subdomain uses the private zone. www.example.com is outside its scope and retains ordinary public resolution; the private value need not be published.
Creating a zone alone does not associate it with that VPC Resolver. Verify VPC association and DNS attributes.
Check official documentation
Compare the following points with the official documentation.
In an approved test domain, inspect VPC association, both DNS attributes, and the private A record. Compare internal-name and public-www queries through VPC Resolver with external public DNS responses; also test an absent name under the private zone.
Official references
What to confirm
The associated VPC resolves the internal name to 10.30.0.10 and www retains its public value. Public DNS does not return the internal private record. Do not assume a missing private-zone record falls back to public DNS.
Key points
- Private hosted zone
- VPC association
- NXDOMAIN
Notes
- Environment: Official Route 53 documentation and approved private and public test zones and VPC Resolver
- Reviewed against the linked AWS documentation on 2026-10-15.
Foundation review
Limit the private namespace to what is needed
Use private internal.example.com with the db A record and VPC association, verifying DNS attributes. www.example.com is outside that private namespace and retains normal public resolution.
Do not assume public fallback for absent records
The matching private zone is used; a queried name absent from that zone returns NXDOMAIN rather than falling back to public DNS. If a private parent zone shadows public example.com, account for all required names and the wider namespace impact.
Separate resolution from network authorization
Putting a private address in a public A record does not hide the DNS information. Successful private resolution does not grant routes or SG permissions. Configured inbound Resolver paths can generally support hybrid queries, but no such path is configured in this scenario.