- Newest
- Most votes
- Most comments
Yes, private DNS hostnames of EC2 instances in a peer VPC can be resolved to private IP addresses, but this functionality needs to be explicitly enabled for the VPC peering connection.
By default, DNS resolution between peered VPCs is not enabled. To allow instances in one VPC to resolve private DNS hostnames to private IP addresses for instances in the peered VPC, you must enable DNS resolution support for the VPC peering connection.
This applies to all cases, not just for VPCs with CIDR blocks outside the RFC 1918 ranges. The mention of RFC 1918 in the documentation is addressing a specific edge case, but the general requirement to enable DNS resolution support applies to all VPC peering connections where you want to resolve private DNS hostnames across the peered VPCs.
To enable this feature, both VPCs in the peering connection must have DNS hostnames and DNS resolution enabled. Then, you need to modify the VPC peering connection settings to enable DNS resolution for queries from the peer VPC. This can be done through the Amazon VPC console, AWS CLI, or AWS Tools for Windows PowerShell.
It's important to note that this setting needs to be enabled for both sides of the peering connection if you want bi-directional private DNS resolution. If the peered VPCs are in different AWS accounts or regions, the process needs to be completed by the respective VPC owners.
Once enabled, instances in one VPC can resolve the private DNS hostnames of instances in the peered VPC to their private IP addresses, facilitating easier communication between resources across the peered VPCs using friendly DNS names instead of IP addresses.
Sources
Enable DNS resolution for a VPC peering connection - Amazon Virtual Private Cloud
How VPC peering connections work - Amazon Virtual Private Cloud
DNS - Building a Scalable and Secure Multi-VPC AWS Network Infrastructure
Yes, you can resolve private DNS hostnames of EC2 instances in a peer VPC, but you need to enable it explicitly for the VPC peering connection.
By default, DNS resolution does not work across peered VPCs. If you want instances in one VPC to resolve private hostnames of instances in another VPC within the same region, you must enable DNS resolution support for the VPC peering connection.
Here's what you need to do:
1.Ensure that both VPCs have DNS resolution and DNS hostnames enabled.
2.Modify the VPC peering connection settings to enable DNS resolution for the peer VPC. You can do this via the AWS console, AWS CLI, or AWS PowerShell.
Once enabled, instances in one VPC can resolve private hostnames in the peer VPC, making communication easier without needing to use IP addresses.
Also, if you want DNS resolution to work in both directions (VPC A to VPC B and vice versa), you need to enable it on both sides of the peering connection.
For VPC peering across different regions, AWS requires you to enable DNS resolution explicitly—otherwise, private DNS hostnames won’t be resolved.
Relevant content
- AWS OFFICIALUpdated 4 years ago

Thanks for the reply