API documentation
?? DNS Rec??d
?? a new DNS rec??d f?? a specific ???
Content-Type
application-json
????
dns
??
create_record
?? ????
| ???? ?? | ?? | ?? | ?? |
|---|---|---|---|
| domain | ??? (3-60) | ??? ?? | example.com |
| type | ??? | DNS rec??d type (A, MX, CNAME, TXT, etc.) | A |
| host | ??? | Host name f?? the DNS rec??d | www |
| value | ??? | DNS rec??d value | 192.168.1.1 |
| pri | ??(?? ??) | Pri??ity value (used f?? MX ? SRV rec??ds) | 20 |
?? ????
| ???? ?? | ?? | ?? |
|---|---|---|
| id | ?? | DNS rec??d ID |
| type | ??? | DNS rec??d type (A, MX, CNAME, TXT, etc.) |
| host | ??? | Host name |
| value | ??? | DNS rec??d value |
| ttl | ?? | Time to live in seconds |
| pri | ?? | Pri??ity (f?? MX rec??ds) |
?? ??
{
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"
}
?? ??
0 OK
?? ??
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345,
"type": "A",
"host": "@",
"value": "192.168.1.1",
"ttl": 3600,
"pri": 0
}
}
}
400 ??? ??
{
"code": 400,
"msg" : "Request parameter error",
}






