API documentation
Uşaq Ad Serverləri Siyahısı
Retrieve all DNS servers fvə ya a specific domen
Content-Type
application-json
kateqoriya
nameserverhost
əməl
list
Sorğu parametrləri
| Parametrin adı | Növ | Təsvir et | Nümunə |
|---|---|---|---|
| domain | Sətr | Domen adı | example.com |
Cavab parametrləri
| Parametrin adı | Növ | Təsvir et |
|---|---|---|
| dns | Sətr | DNS server name |
| ip | Sətr | DNS server IP address |
Sorgu Nümunəsi
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Nəticənin qayıdışı
0 OK
Uğurlu cavab
{
"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 Yanlış Sorğu
{
"code": 400,
"msg" : "Request parameter error",
}






