API documentation
Listahan Child Pangalanservers
Retrieve all DNS servers fo a specific domain
Content-Type
application-json
kategorya
nameserverhost
aksyon
list
Mga parameter ng request
| Pangalan ng parameter | Uri | Paglalarawan | Halimbawa |
|---|---|---|---|
| domain | String | Pangalan ng domain | example.com |
Mga parameter ng tugon
| Pangalan ng parameter | Uri | Paglalarawan |
|---|---|---|
| dns | String | DNS server name |
| ip | String | DNS server IP address |
Halimbawa ng Request
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Resulta ng Return
0 OK
Matagumpay na tugon
{
"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 Hindi wastong kahilingan
{
"code": 400,
"msg" : "Request parameter error",
}






