API documentation
Lijst Child Naamservers
Retrieve all DNS servers fof a specific domein
Content-Type
application-json
categorie
nameserverhost
actie
list
Aanvraagparameters
| Parameternaam | Type | Omschrijving | Voorbeeld |
|---|---|---|---|
| domain | Tekst | Domeinnaam | example.com |
Responseparameters
| Parameternaam | Type | Omschrijving |
|---|---|---|
| dns | Tekst | DNS server name |
| ip | Tekst | DNS server IP address |
Voorbeeld aanvraag
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Resultaat teruggeven
0 OK
Succesvolle respons
{
"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 Ongeldig verzoek
{
"code": 400,
"msg" : "Request parameter error",
}






