Perbarui Nameserver
Operasi pembaruan memungkinkan Anda untuk mengubah nameserver domain.
Content-Type
application/json
kategori
domain
action
change_dns
Parameter Permintaan
| Nama Parameter | Tipe | Deskripsi | Contoh |
|---|---|---|---|
| domain | Teks (3–60) | Nama domain | example.com |
| dns1 | Server | Ubah nameserver utama | ns1.my-ndns.com |
| dns2 | Server | Ubah nameserver sekunder | ns2.my-ndns.com |
| ... | Server | DNS lainnya, maksimal 6 | nsX.my-ndns.com |
Contoh Permintaan
{
curl https://api.nicenic.net/v2/?category=domain&action=change_dns&domain={domain}&dns1={dns1}&dns2={dns2}&...={...}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Hasil yang Dikembalikan
0 OK Respons berhasil
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 Permintaan Buruk
{
"code": 400,
"msg" : "Request parameter error",
}






