QueryDnsHost: queries the DNS host.

Request parameters

For more information about public request parameters, see Public parameters.

Parameter Type Required Description
Action String Yes API of the action, system required parameter. Set this parameter to QueryDnsHost.
InstanceId String Yes Instance ID.

Instance ID can be queried by calling QueryDomainList.

Lang String No Language of the error message returned from the API. The enumerated values include zh (Chinese) and en (English).  The default value is en.

Response parameters

Parameter Type Description
RequestId String Unique request identifier
DnsHostList DnsHostType DNS host information.
Table 1. DnsHostType
Parameter Type Description
DnsName String Domain name.
IpList IpListType IP address list.

Error codes

Error code Description  HTTP status code Meaning
ParameterIllegal Parameter illegal. 400 Parameter error.
Networkioerror Network IO Error. 400 Network I/O exception.

Examples

Request example

http://domain-intl.aliyuncs.com/?Action=QueryDnsHost
&InstanceId=ST2017120814571100001303
&<Public request parameters>

Response example

  • XML format
    <? xml version='1.0' encoding='UTF-8'? >
    <QueryDnsHostResponse>
        <DnsHostList>
            <DnsHost>
                <DnsName>ns3</DnsName>
                <IpList>
                    <ip>185.27.134.201</ip>
                    <ip>218.83.159.236</ip>
                </IpList>
            </DnsHost>
        </DnsHostList>
        <RequestId>18A313DD-3AF3-40AA-84F9-56BA45DC511F</RequestId>
    </QueryDnsHostResponse>
  • JSON format
    {
      "dnsHostList": [
        {
          "dnsName": "ns3",
          "ipList": [
            "185.27.134.201",
            "218.83.159.236"
          ]
        }
      ],
      "requestId": "6A973B69-7B5F-4959-AA89-ED4010541D20"
    }