Cloud Panel

Set reverse DNS

PUT/api/v1/vms/{vm_uuid}/dns/ptr

Sets the name the server's public addresses resolve back to.

Parameters

NameInDescription
vm_uuidpath, stringrequiredServer id, from Create a VM or List VMs

Request body

FieldTypeDescription
hostnamestringrequiredName the public addresses resolve back to, a full domain name

Example request

curl -X PUT "https://platform.serverscamp.com/api/v1/vms/$VM_UUID/dns/ptr" \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "hostname": "mail.example.com"
  }'

Answer

Status 200 with this body.

FieldTypeDescription
vm_uuidstringrequired
hostnamestringrequiredReverse DNS name of the public addresses now
{
  "vm_uuid": "6f1c2a9e-4b3d-4e8a-9c71-2d5e8f0a1b34",
  "hostname": "mail.example.com"
}

Errors

StatusWhen
400Not a full domain name
401No token, or a token that is not valid
404No such server in your account
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors