# GET /mail/trace/reverse

First published 15 Oct 2026 (release 0.2.2) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

Look up reverse DNS names for IP addresses

- Who may call it: administrator, reseller
- Token scope, any of: mail, read, all
- Answers: 200 OK

The operation looks up reverse DNS for up to 64 distinct IP addresses in parallel. The API ignores empty entries and returns 400 unless ips contains 1 to 64 nonempty entries, each 2 to 45 characters long and consisting only of hexadecimal digits, periods, and colons.

## As a command

- [urbestack-mail-trace](https://urbestack.com/docs/commands/urbestack-mail-trace.md): Finds messages in the mail logs and shows what happened to them.

## Parameters

- `ips` (query, string, up to 3000 characters, required): Comma-separated IPv4 or IPv6 addresses, with no spaces. Supply 1 to 64 IP addresses.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/mail/trace/reverse?ips=text" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "ips": [
    {
      "country": "text",
      "ip": "203.0.113.7",
      "reverse": "text"
    }
  ]
}
```

## Errors

- 400: --q, --id, --message-id, --reverse or --files is required
- 400: A Message-ID has the shape local@domain
- 400: A queue id is 6 to 20 uppercase hexadecimal characters
- 400: At most 64 addresses at once
- 400: Give an address, a queue id or a Message-ID to search for
- 400: Invalid setting key
- 400: Search for an address, a queue id (6 to 20 uppercase hexadecimal characters) or a Message-ID in angle brackets
- 400: dir is any, sender or recipient
- 400: ips is a list of IP addresses separated by commas
- 400: ips names 1 to 64 addresses
- 401: Authentication required
- 404: No message <qid> in the kept logs
- 404: No message with the Message-ID <<mid>> in the kept logs
- 404: No such user: <owner>
- 404: Setting '<key>' not found
