edit-icon download-icon

QueryDnsHost

Last Updated: Jan 29, 2018

Description

The QueryDnsHost API 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
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

Error codes

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

Examples

Request example

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

Response example

  • XML format
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <QueryDnsHostResponse>
  3. <DnsHostList>
  4. <DnsHost>
  5. <DnsName>ns3</DnsName>
  6. <IpList>
  7. <ip>185.27.134.201</ip>
  8. <ip>218.83.159.236</ip>
  9. </IpList>
  10. </DnsHost>
  11. </DnsHostList>
  12. <RequestId>18A313DD-3AF3-40AA-84F9-56BA45DC511F</RequestId>
  13. </QueryDnsHostResponse>
  • JSON format
  1. {
  2. "dnsHostList": [
  3. {
  4. "dnsName": "ns3",
  5. "ipList": [
  6. "185.27.134.201",
  7. "218.83.159.236"
  8. ]
  9. }
  10. ],
  11. "requestId": "6A973B69-7B5F-4959-AA89-ED4010541D20"
  12. }
Thank you! We've received your feedback.