API documentation
???? Child ???servers
Retrieve all DNS servers f?? a specific ?????
??? ?????
application-json
?????????
nameserverhost
??????
list
?????????? ???????
| ??? ??????? | ??? | ????? | ????? |
|---|---|---|---|
| domain | ???? | ??? ????? | example.com |
?????????? ????
| ??? ??????? | ??? | ????? |
|---|---|---|
| dns | ???? | DNS server name |
| ip | ???? | DNS server IP address |
????? ???????
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
????? ??????
0 OK
???? ???????????
{
"code": 0,
"msg" : "success",
"data" : {
{
"list": [
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
},
{
"dns": "ns2.example.com",
"ip": "192.168.1.2"
}
],
"total": 2
}
}
}
400 ??????? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






