API documentation
Kemas Kini Child Namaserver
Kemas Kini the IP address of an existing DNS server
Content-Type
application-json
kategori
nameserverhost
tindakan
update
Parameter permintaan
| Nama parameter | Jenis | Huraikan | Contoh |
|---|---|---|---|
| domain | Rentetan | Nama domain | example.com |
| dns | Rentetan (3-30) | DNS server name (must match domain) | ns1.example.com |
| ip | Rentetan | Baharu DNS server IP address | 192.168.1.2 |
Parameter respons
| Nama parameter | Jenis | Huraikan |
|---|---|---|
| dns | Rentetan | DNS server name |
| ip | Rentetan | Dikemas kini DNS server IP address |
Contoh Permintaan
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=update&domain={domain}&dns={dns}&ip={ip}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Hasil Pulangan
0 OK
Respons berjaya
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 Permintaan tidak sah
{
"code": 400,
"msg" : "Request parameter error",
}






