Perbarui Nameserver Anak
Perbarui alamat IP dari server DNS yang ada.
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) | Nama server DNS (harus cocok dengan domain) | ns1.example.com |
| ip | String | Alamat IP server DNS baru | 192.168.1.2 |
Parameter respons
| Nama parameter | Tipe | Deskripsi |
|---|---|---|
| dns | String | Nama server DNS |
| ip | String | IP server DNS yang diperbarui |
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",
}






