API documentation
Alt Dizin Ad Sunucularını Listele
Retrieve all DNS servers fveya a specific domain
Content-Type
application-json
kategori
nameserverhost
işlem
list
İstek parametreleri
| Parametre Adı | Tür | Açıklama | Örnek |
|---|---|---|---|
| domain | String | Alan adı | example.com |
Yanıt parametreleri
| Parametre Adı | Tür | Açıklama |
|---|---|---|
| dns | String | DNS server name |
| ip | String | DNS server IP address |
İstek Örneği
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Dönüş sonucu
0 OK
Başarılı yanıt
{
"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 Hatalı İstek
{
"code": 400,
"msg" : "Request parameter error",
}






