# POST /dns/clients/{address}/zones/{name}/hand

First published 21 Oct 2026 (release 0.2.13) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Transfer a DNS client's zone to another client

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

Use this operation when a site has been restored on another server after the original server failed permanently. The new client's push returns 409 while the zone is still held for the original client. The zone's current owner determines the source client regardless of the {address} path segment. Supply the recipient's registered IPv4 address in to.

The recipient can push, update or delete the zone. The transfer preserves the records being served until the recipient changes the zone. UrbeStack sends the transfer to the other nodes. The response identifies the zone, the previous client and the recipient in zone, from and to.

## As a command

- [urbestack-dns-client-hand](https://urbestack.com/docs/commands/urbestack-dns-client-hand.md): Transfers a zone held for one DNS client to a different registered client.

## Request body

JSON, the type [DnsClientHand](https://urbestack.com/docs/api/types/DnsClientHand.md).

- `to` (string, required): IP address of the client receiving the zone.

## 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 POST "$API/dns/clients/{address}/zones/{name}/hand" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "text"
  }'
```

Response, 200 OK:

```
{
  "from": "text",
  "to": "text",
  "zone": "text"
}
```

## Errors

- 400: --zone and --to are required
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid domain name
- 400: Zone <name> is <to.label>'s already
- 400: Zone <z.name> is <to.label>'s already
- 400: Zone <z.name> is this server's own, not a client's
- 401: Authentication required
- 404: No client at <opt>->{'from-client'}
- 404: No client at <to_address> on this DNS server
- 404: Zone '<name>' is not held here for this client
- 404: Zone '<name>' not found
