API documentation
Olu?tur DNS Recveyad
Ekle a new DNS recveyad fveya a specific domain
Content-Type
application-json
kategori
dns
i?lem
create_record
?stek parametreleri
| Parametre Ad? | Tür | A??klama | ?rnek |
|---|---|---|---|
| domain | String (3-60) | Alan ad? | example.com |
| type | String | DNS recveyad type (A, MX, CNAME, TXT, etc.) | A |
| host | String | Host name fveya the DNS recveyad | www |
| value | String | DNS recveyad value | 192.168.1.1 |
| pri | Integer (?ste?e ba?l?) | Priveyaity value (used fveya MX ve SRV recveyads) | 20 |
Yan?t parametreleri
| Parametre Ad? | Tür | A??klama |
|---|---|---|
| id | Tamsay? | DNS recveyad ID |
| type | String | DNS recveyad type (A, MX, CNAME, TXT, etc.) |
| host | String | Host name |
| value | String | DNS recveyad value |
| ttl | Tamsay? | Time to live in seconds |
| pri | Tamsay? | Priveyaity (fveya MX recveyads) |
?stek ?rne?i
{
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"
}
D?nü? sonucu
0 OK
Ba?ar?l? yan?t
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345,
"type": "A",
"host": "@",
"value": "192.168.1.1",
"ttl": 3600,
"pri": 0
}
}
}
400 Hatal? ?stek
{
"code": 400,
"msg" : "Request parameter error",
}






