DescribeVpcClassicLinkDnsSupport - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

DescribeVpcClassicLinkDnsSupport

Note

We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

MaxResults

The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

Type: Integer

Valid Range: Minimum value of 5. Maximum value of 255.

Required: No

NextToken

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Required: No

VpcIds.N

One or more VPC IDs.

Type: Array of strings

Required: No

Response Elements

The following elements are returned by the service.

nextToken

The token to include in another request to get the next page of items. This value is null when there are no more items to return.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

requestId

The ID of the request.

Type: String

vpcs

Information about the ClassicLink DNS support status of the VPCs.

Type: Array of ClassicLinkDnsSupport objects

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example

This example describes the ClassicLink DNS support status of all of your VPCs.

Sample Request

https://ec2.amazonaws.com/?Action=DescribeVpcClassicLinkDnsSupport &AUTHPARAMS

Sample Response

<DescribeVpcClassicLinkDnsSupportResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>14eea823-b88b-472a-9225-5f6a54ab1a5c</requestId> <vpcs> <item> <classicLinkDnsSupported>true</classicLinkDnsSupported> <vpcId>vpc-wxy987wz</vpcId> </item> <item> <classicLinkDnsSupported>false</classicLinkDnsSupported> <vpcId>vpc-123abc12</vpcId> </item> </vpcs> </DescribeVpcClassicLinkDnsSupportResponse>

Example

This example describes the ClassicLink DNS support status of vpc-1a2b3c4d.

Sample Request

https://ec2.amazonaws.com/?Action=DescribeVpcClassicLinkDnsSupport &VpcId.1=vpc-1a2b3c4d &AUTHPARAMS

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: