API documentation
Modify nameserver
The update operation allows you to change domain nameserver
Content-Type
application-json
category
domain
action
change_dns
Request parameters
| Parameter Name | Type | Describe | Example |
|---|---|---|---|
| domain | String (3-60) | Domain name | example.com |
| dns1 | Server | Modify primary nameserver | ns1.my-ndns.com |
| dns2 | Server | Modify secondary nameserver | ns2.my-ndns.com |
| ... | Server | More DNS, limit to 6 | nsX.my-ndns.com |
Request Example
{
curl http://api.nicenic.net/v2/?category=domain&action=change_dns&domain={domain}&dns1={dns1}&dns2={dns2}&...={...}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Return result
0 OK
Successful response
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 Bad Request
{
"code": 400,
"msg" : "Request parameter error",
}






