Submits a task for changing the domain name system (DNS) servers of multiple domain names at a time.

You can call the QueryTaskDetailList operation to query the running result of the task.


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

Request parameters

Parameter Type Required Example Description
Action String Yes SaveBatchTaskForModifyingDomainDns

The operation that you want to perform. Set the value to SaveBatchTaskForModifyingDomainDns.

AliyunDns Boolean Yes false

Specifies whether to change the DNS server to the Alibaba Cloud DNS server. Valid values:

  • true: yes
  • false: no
DomainName.N RepeatList Yes

The domain name whose DNS server you want to change.

DomainNameServer.N RepeatList No

The DNS servers that you want to change. This parameter is required only when AliyunDns is set to false.

Lang String No en

The language of the error message returned. Valid values:

  • zh: Chinese
  • en: English

Default value: en.

UserClientIp String No

The IP address of the client that is used to submit the task. Set the value to

Response parameters

Parameter Type Example Description
RequestId String 6A862A8A-E7AB-4C4E-8946-A74122D9CC4B

The ID of the request.

TaskNo String 35fb2fb7-d4d6-4478-9408-22cb63696b86

The ID of the task that was submitted.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

  "requestId": "689C17B3-6AE0-45FB-8E41-4491A02C9999",
  "taskNo": "fce12087-6c9f-4dcd-92df-d3829b7f19bc"

Error codes

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