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.


Request example

&<Public request parameters>

Response example

  • XML format
    <? xml version='1.0' encoding='UTF-8'? >
  • JSON format
      "dnsHostList": [
          "dnsName": "ns3",
          "ipList": [
      "requestId": "6A973B69-7B5F-4959-AA89-ED4010541D20"