You can call this operation to submit the task for modifying the domain name system (DNS) server for a domain name in batches.

You can call the QueryTaskDetailList operation to query the execution result.


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

Request parameters

Parameter Type Required Example Description
Action String Yes SaveBatchTaskForModifyingDomainDns

[DO NOT TRANSLATE] Set the value to SaveBatchTaskForModifyingDomainDns.

AliyunDns Boolean Yes false

Specifies whether to change the DNS server to the Alibaba Cloud DNS server.

DomainName.N RepeatList Yes

The domain name for which you want to modify the DNS server.

DomainNameServer.N RepeatList No

The list of DNS servers to be modified. This parameter must be specified when AliyunDns is set to false.

Lang String No en

The language of the error message to return. Valid values:

  • zh: Chinese
  • en: English

Default value: en

UserClientIp String No

The IP address of the client used by the user to submit the task.

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.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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