# POST /dns/distribution/zones/{name}/handover

First published 12 Nov 2026 (release 0.2.28) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Transfer a DNS zone to another client of the receiving server

- Who may call it: anyone (no token needed)
- Answers: 200 OK

Use this operation at cutover when moving an account's zones to another client. The name path parameter identifies the zone, and to is the destination client's licensed IPv4 address. The receiving server continues to serve the existing zone until it receives the first update from the destination client. The 200 response gives the zone name in zone and the previous and new clients' IPv4 addresses in from and to.

A client can transfer its own zone. A network node can also relay a handover its administrator made for a zone belonging to a client server that is no longer operational. A caller that lacks authority over the zone receives 409 naming the current holder. The receiving server returns 404 if it does not hold the zone or does not know the destination client. The originating client handles a 404 for an unknown destination by deleting the zone from the receiving server.

Send the caller's DNS distribution key as the bearer credential in the Authorization header. Both X-Urbestack-Address and the request's source IPv4 address must match the caller's licensed IPv4 address registered for the key. A missing or invalid X-Urbestack-Address returns 400. A missing or unrecognized key returns 401. A license refusal on the receiving node returns 402. An IPv4 address mismatch returns 403.

For seven days after a key is removed, the receiving node returns 403 for that key with details in removed. For seven days after the receiving server leaves or is removed from the network, it returns 410 for keys it still recognizes, with departure details and the remaining nodes in left.

## As a command

- [urbestack-dns-client-note](https://urbestack.com/docs/commands/urbestack-dns-client-note.md): Records when a DNS client last called the API using its key.

## 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/distribution/zones/{name}/handover" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "text"
  }'
```

Response, 200 OK:

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

## Errors

- 400: --address is required
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid domain name
- 400: X-Urbestack-Address must carry the client's own IPv4 address
- 401: Unknown key
- 402: This node refuses changes: <why>
- 403: The call came from <remote> but the server says its address is <said>. A server behind NAT cannot be a client
- 403: This key belongs to the client at <c.address>, and the call came from <remote>
- 403: This server was removed from the distribution network on 
- 410: This server is no longer a node of the distribution network: it 
