Skip to content

List a server's reverse DNS addresses

GET/servers/{server}/rdns

Overview

Lists reverse DNS entries for the server's addresses. Use each entry's id as {ipId} in subsequent requests. A routed IPv6 allocation has separate entries for its individual address and subnet. The individual address entry adds -onlink to its ID. Each entry has its own DNS records.

Permissions

Requires the network.read (View networking) permission for the selected team. Resources outside that team return 404.

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/servers/{server}/rdns' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
[
  {
    "id": "58213",
    "address": "203.0.113.24",
    "type": "ipv4",
    "cidr": 24,
    "gateway": "203.0.113.1",
    "isOnlink": false
  }
]

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Path parameters

serverstringrequired

The server uuid short

Response 200

application/json

The whole set, as a JSON array. There is no envelope and no paging.

idstringrequired

The address id, suffixed with "-onlink" for the onlink half.

addressstringrequired

The IP address assigned to the resource.

typestringrequired

The type of operation or resource.

One of: ipv4, ipv6

cidrintegerrequired

128 for an onlink entry, since that is the size it is written at.

gatewaystringrequired

The gateway address for the network.

isOnlinkbooleanrequired

Whether the resource is onlink.

Errors

401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
404
The resource was not found in the selected team. Resources in another account or team also return 404.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.