Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Enable DNS resolution for a VPC peering connection

Focus mode
Enable DNS resolution for a VPC peering connection - Amazon Virtual Private Cloud

The DNS settings for a VPC peering connection determine how public DNS hostnames are resolved for requests that traverse the VPC peering connection. If an EC2 instance on one side of a VPC peering connection sends a request to an EC2 instance on the other side using the public IPv4 DNS hostname of the instance, the DNS hostname is resolved as follows.

DNS resolution disabled (default)

The public IPv4 DNS hostname resolves to the public IPv4 address of the instance.

DNS resolution enabled

The public IPv4 DNS hostname resolves to the private IPv4 address of the instance.

Requirements
  • Both VPCs must be enabled for DNS hostnames and DNS resolution. For more information, see DNS attributes for your VPC in the Amazon VPC User Guide.

  • The peering connection must be in the active state. You can't enable DNS resolution when you create a peering connection.

  • The owner of the requester VPC must modify the requester VPC peering options, and the owner of the accepter VPC must modify the accepter VPC peering options. If the VPCs are in the same account and Region, you can enable DNS resolution for the requester and accepter VPCs at the same time.

To enable DNS resolution for a peering connection using the console
  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Peering connections.

  3. Select the VPC peering connection.

  4. Choose Actions, Edit DNS settings.

  5. To enable DNS resolution for requests from the requester VPC, select Requester DNS resolution, Allow accepter VPC to resolve the DNS of requester VPC.

  6. To ensure DNS resolution for requests from the accepter VPC, select Accepter DNS resolution, Allow requester VPC to resolve the DNS of accepter VPC.

  7. Choose Save changes.

To enable DNS resolution using the command line
To describe VPC peering connection options using the command line
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.