Skip navigation links

Package software.amazon.awssdk.services.route53resolver

Here's how you set up to query an Amazon Route 53 private hosted zone from your network:

See: Description

Package software.amazon.awssdk.services.route53resolver Description

Here's how you set up to query an Amazon Route 53 private hosted zone from your network:

  1. Connect your network to a VPC using AWS Direct Connect or a VPN.

  2. Run the following AWS CLI command to create a Resolver endpoint:

    create-resolver-endpoint --name [endpoint_name] --direction INBOUND --creator-request-id [unique_string] --security-group-ids [security_group_with_inbound_rules] --ip-addresses SubnetId=[subnet_id] SubnetId=[subnet_id_in_different_AZ]

    Note the resolver endpoint ID that appears in the response. You'll use it in step 3.

  3. Get the IP addresses for the Resolver endpoints:

    get-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id]

  4. In your network configuration, define the IP addresses that you got in step 3 as DNS servers.

    You can now query instance names in your VPCs and the names of records in your private hosted zone.

You can also perform the following operations using the AWS CLI:

To delete an endpoint, use the following AWS CLI command:

delete-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id]

Skip navigation links

Copyright © 2019 Amazon Web Services, Inc. All Rights Reserved.