API documentation
Senarai Child Namaservers
Retrieve all DNS servers fatau a specific domain
Content-Type
application-json
kategori
nameserverhost
tindakan
list
Parameter permintaan
| Nama parameter | Jenis | Huraikan | Contoh |
|---|---|---|---|
| domain | Rentetan | Nama domain | example.com |
Parameter respons
| Nama parameter | Jenis | Huraikan |
|---|---|---|
| dns | Rentetan | DNS server name |
| ip | Rentetan | DNS server IP address |
Contoh Permintaan
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Hasil Pulangan
0 OK
Respons berjaya
{
"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 Permintaan tidak sah
{
"code": 400,
"msg" : "Request parameter error",
}






