API documentation
Nimekiri Child Nimiservers
Retrieve all DNS servers fv?i a specific domeen
Content-Type
application-json
kategooria
nameserverhost
tegevus
list
P?ringu parameetrid
| Parameetri nimi | Tüüp | Kirjeldus | N?ide |
|---|---|---|---|
| domain | Tekstijada | Domeeninimi | example.com |
Vastusparameetrid
| Parameetri nimi | Tüüp | Kirjeldus |
|---|---|---|
| dns | Tekstijada | DNS server name |
| ip | Tekstijada | DNS server IP address |
p?ringu n?ide
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
tagastuse tulemus
0 OK
?nnestunud vastus
{
"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 Vigane p?ring
{
"code": 400,
"msg" : "Request parameter error",
}






