Modifying HiChina DNS

Last Updated: May 27, 2016

Description

Modifies the DNS of the domain name based on input parameters. This feature is only specific to the DNS of a HiChina domain name. After the modification is successful, the DNS will be changed to the HiChina DNS (ending with hichina.com).

Request Parameters

Name Type Required? Description
Action String Yes Operation interface name, required parameter. Value: ModifyHichinaDomainDNS
DomainName String Yes Domain name

Return Parameters

Public return parameters. For details, see Public Return Parameters

Name Type Description
RequestId String The unique request identifier
OriginalDnsServers DnsServerType The original DNS list for a domain name
NewDnsServers DnsServerType The modified DNS list for a domain name

Error Codes

For errors common to all interfaces, please refer to the Error Code Table .

Error Code Description HTTP Status Code Meaning
IncorrectDomainUser The domain name does not belong to this user. 400 The domain name does not exist under this account
Forbidden.DomainType The domain is forbidden to operate because it is NOT a hichina domain. 400 The domain name is not a HiChina domain name

Example

Request Example

http://dns.aliyuncs.com/?Action=ModifyHichinaDomainDNS
&DomainName=example.com
&<Public Request Parameters>

Return Example

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 Example

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "OriginalDnsServers": {
        "DnsServer": [
            "NS3.DNSV5.COM",
            "NS4.DNSV5.COM"
        ]
    },
    "NewDnsServers": {
        "DnsServer": [
            "dns9.hichina.com",
            "dns10.hichina.com"
        ]
    }
}
Thank you! We've received your feedback.