API documentation
Buat DNS Recataud
Tambah a new DNS recataud fatau a specific domain
Content-Type
application-json
kategori
dns
aksi
create_record
Parameter permintaan
| Nama parameter | Tipe | Deskripsi | Contoh |
|---|---|---|---|
| domain | String (3-60) | Nama domain | example.com |
| type | String | DNS recataud type (A, MX, CNAME, TXT, etc.) | A |
| host | String | Host name fatau the DNS recataud | www |
| value | String | DNS recataud value | 192.168.1.1 |
| pri | Integer (Opsional) | Priatauity value (used fatau MX dan SRV recatauds) | 20 |
Parameter respons
| Nama parameter | Tipe | Deskripsi |
|---|---|---|
| id | Bilangan bulat | DNS recataud ID |
| type | String | DNS recataud type (A, MX, CNAME, TXT, etc.) |
| host | String | Host name |
| value | String | DNS recataud value |
| ttl | Bilangan bulat | Time to live in seconds |
| pri | Bilangan bulat | Priatauity (fatau MX recatauds) |
Contoh Permintaan
{
curl https://api.nicenic.net/v2/?category=dns&action=create_record&domain={domain}&type={type}&host={host}&value={value}&pri={pri}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Kembalikan hasil
0 OK
Respons berhasil
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345,
"type": "A",
"host": "@",
"value": "192.168.1.1",
"ttl": 3600,
"pri": 0
}
}
}
400 Permintaan tidak valid
{
"code": 400,
"msg" : "Request parameter error",
}






