Set reverse DNS for an IP
curl --request POST \
--url https://my.server.express/api/v1/dedicated/{id}/network \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"ptr": "mail.example.com"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ip: '<string>', ptr: 'mail.example.com'})
};
fetch('https://my.server.express/api/v1/dedicated/{id}/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/network"
payload = {
"ip": "<string>",
"ptr": "mail.example.com"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"ip": "<string>",
"ptr": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Dedicated
Set reverse DNS for an IP
Sets the PTR record for one of this server’s IPs. The IP must be assigned to this box in TenantOS (checked live),
otherwise 403. A trailing dot on ptr is stripped. Needs operate access and a manageable billing status; staff may
also call it and bypass the billing-status check. Writes an UPDATE_RDNS audit entry.
POST
/
v1
/
dedicated
/
{id}
/
network
Set reverse DNS for an IP
curl --request POST \
--url https://my.server.express/api/v1/dedicated/{id}/network \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"ptr": "mail.example.com"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ip: '<string>', ptr: 'mail.example.com'})
};
fetch('https://my.server.express/api/v1/dedicated/{id}/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/network"
payload = {
"ip": "<string>",
"ptr": "mail.example.com"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"ip": "<string>",
"ptr": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
The dedicated server's service id.
Body
application/json