You can call this operation to obtain DNS resolution results. The results can only be obtained from Alibaba Cloud DNS, and can be obtained only when the domain names are reolved by using Alibaba Cloud DNS.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Domain String Yes www.aliyun.com

The domain name to be resolved.

SourceIp String No 1.2.3.4

The source IP address of the request.

Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese
  • en: English

Response parameters

Parameter Type Example Description
RequestId String CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D

The ID of the request.

ResolveResult Struct

The DNS resolution result.

IpAddrs String 11.1.1.1,12.1.1.1

The resolved IP addresses. Separate multiple IP addresses with commas (,).

UpdateTime Long 1579091739

The timestamp generated when DNS resolution was performed.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeDomainResolve
&Domain=www.aliyun.com
&<Common request parameters>

Sample success responses

JSON format

{
    "RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D",
    "ResolveResult": {
        IpAddrs:"11.1.1.1,12.1.1.1",
        UpdateTime:1579091739
    },
}

Error codes

For a list of error codes, visit the API Error Center.