API documentation
?? ??? ???? Child ???server
?? ??? ???? the IP address of an existing DNS server
Content-Type
application-json
????
nameserverhost
???
update
??????? ?? ?????????
| ???????? ?? ??? | ??? | ????? | ???? |
|---|---|---|---|
| domain | ?????? | Domain name | example.com |
| dns | ?????? (3-30) | DNS server name (must match ?????) | ns1.example.com |
| ip | ?????? | ??? DNS server IP address | 192.168.1.2 |
???? ?? ?????????
| ???????? ?? ??? | ??? | ????? |
|---|---|---|
| dns | ?????? | DNS server name |
| ip | ?????? | ???? ???? ??? DNS server IP address |
??????? ?? ????
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=update&domain={domain}&dns={dns}&ip={ip}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
????? ???? ????
0 OK
?????? ????
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 ??? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






