The SaveBatchTaskForModifyingDomainDns API submits bulk DNS modification tasks. You can use the QueryTaskDetailList API to query the task execution result.

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 SaveBatchTaskForModifyingDomainDns.
DomainName DomainListType Yes Domain name list.
AliyunDns Boolean Yes Whether to change the domain name to Alibaba Cloud DNS.
DomainNameServer DnsListType No DNS list (required if AliyunDns is set to false).
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.
Table 1. DomainListType
Parameter Type Description
DomainName String Domain name.
Table 2. DnsListType
Parameter Type Description
DNS String DNS information.

Response parameters

Parameter Type Description
RequestId String Unique request identifier.
TaskNo String Task ID.

Error codes

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


Request example
? Action=SaveBatchTaskForModifyingDomainDns
&<Public request parameters>

Response example

  • XML format
    <? xml version='1.0' encoding='UTF-8'? >
  • JSON format
      "requestId": "689C17B3-6AE0-45FB-8E41-4491A02C9999",
      "taskNo": "fce12087-6c9f-4dcd-92df-d3829b7f19bc"