Perbarui Nameserver Anak
Perbarui alamat IP dari server DNS yang ada
Content-Type
application/json
kategori
nameserverhost
action
update
Parameter Permintaan
| Nama Parameter | Tipe | Deskripsi | Contoh |
|---|---|---|---|
| domain | Teks | Nama domain | example.com |
| dns | Teks (3–30) | Nama server DNS (harus cocok dengan domain) | ns1.example.com |
| ip | Teks | Alamat IP server DNS baru | 192.168.1.2 |
Parameter respons
| Nama Parameter | Tipe | Deskripsi |
|---|---|---|
| dns | Teks | Nama server DNS |
| ip | Teks | Alamat 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"
}
Hasil yang Dikembalikan
0 OK Respons berhasil
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 Permintaan Buruk
{
"code": 400,
"msg" : "Request parameter error",
}






