# List a server's reverse DNS addresses

`GET https://console.advinservers.com/api/v1/client/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.

## Authorization

Send `Authorization: Bearer <token>` with the request. 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.

## Path parameters

- `server` (string, required): The server uuid short

## Response 200

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

- `id` (string, required): The address id, suffixed with "-onlink" for the onlink half.
- `address` (string, required): The IP address assigned to the resource.
- `type` (string, required): The type of operation or resource. One of: `ipv4`, `ipv6`.
- `cidr` (integer, required): 128 for an onlink entry, since that is the size it is written at.
- `gateway` (string, required): The gateway address for the network.
- `isOnlink` (boolean, required): Whether the resource is onlink.

```json
[
  {
    "id": "58213",
    "address": "203.0.113.24",
    "type": "ipv4",
    "cidr": 24,
    "gateway": "203.0.113.1",
    "isOnlink": false
  }
]
```

## 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.

## Example request

```bash
curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/servers/{server}/rdns' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
