API documentation
Perbarui Child Namaserver
Perbarui the IP address of an existing DNS server
Content-Type
application-json
kategori
nameserverhost
aksi
update
Parameter permintaan
| Nama parameter | Tipe | Deskripsi | Contoh |
|---|---|---|---|
| domain | String | Nama domain | example.com |
| dns | String (3-30) | DNS server name (must match domain) | ns1.example.com |
| ip | String | Baru DNS server IP address | 192.168.1.2 |
Parameter respons
| Nama parameter | Tipe | Deskripsi |
|---|---|---|
| dns | String | DNS server name |
| ip | String | Diperbarui 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"
}
Kembalikan hasil
0 OK
Respons berhasil
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 Permintaan tidak valid
{
"code": 400,
"msg" : "Request parameter error",
}






