Calls the ModifyHichinaDomainDNS operation to change the name of a DNS server based on input parameters.

If the operation succeeds, the name of the DNS server changes to that of an Alibaba Cloud DNS server (ending with hichina.com).

Note Before you call this operation, make sure that your domain name has been registered with Alibaba Cloud and the DNS server in use is not an Alibaba Cloud DNS server.

Debugging

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 ModifyHichinaDomainDNS

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

DomainName String Yes example.com

The domain name.

AccessKeyId String No your_accesskey_id

The AccessKey ID provided to you by Alibaba Cloud.

Lang String No en

The language type.

UserClientIp String No 1.1.1.1

The IP address of the client.

Response parameters

Parameter Type Example Description
NewDnsServers List {"DnsServer": ["dns9.hichina.com","dns10.hichina.com"]}

The list of DNS servers after the domain name is changed.

DnsServer

Details about a DNS server after the domain name is changed.

OriginalDnsServers List {"DnsServer": ["NS3.DNSV5.COM","NS4.DNSV5.COM"]}

The list of DNS servers before the domain name is changed.

DnsServer

Details about a DNS server before the domain name is changed.

RequestId String 536E9CAD-DB30-4647-AC87-AA5CC38C5382

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/?Action=ModifyHichinaDomainDNS
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

<ModifyHichinaDomainDNSResponse>
      <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
      <OriginalDnsServers>
            <DnsServer>NS3.DNSV5.COM</DnsServer>
            <DnsServer>NS4.DNSV5.COM</DnsServer>
      </OriginalDnsServers>
      <NewDnsServers>
            <DnsServer>dns9.hichina.com</DnsServer>
            <DnsServer>dns10.hichina.com</DnsServer>
      </NewDnsServers>
</ModifyHichinaDomainDNSResponse>

JSON format

{
	"RequestId":"536E9CAD-DB30-4647-AC87-AA5CC38C5382",
	"OriginalDnsServers":{
		"DnsServer":[
			"NS3.DNSV5.COM",
			"NS4.DNSV5.COM"
		]
	},
	"NewDnsServers":{
		"DnsServer":[
			"dns9.hichina.com",
			"dns10.hichina.com"
		]
	}
}

Error codes

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