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).
Debugging
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 | 192.0.2.0 |
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)://alidns.aliyuncs.com/?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.