Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

DescribeVpcClassicLinkDnsSupport

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. The request returns a token that you can specify in a subsequent call to get the next set of results.

Type: Integer

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

Required: No

NextToken

The token for the next set of items to return. (You received this token from a prior call.)

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 use when requesting the next set of items.

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 Errors.

Examples

Example

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

Sample Request

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

Sample Response

Copy
<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

Copy
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 AWS SDKs, see the following: