Get your free beta license ↗
API operation · dns group
POST

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

First published 12 Nov 20260.2.28Unchanged since publication

Transfer a DNS zone to another client of the receiving server

Who may call it
Anyone (no token needed)
Token
none
Answers200 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

Run as root on the server

Request body

JSON ·DnsClientHand· 1 field
tostringRequired
IP address of the client receiving the zone.

Example

See the API overview for how to set $API and $TOKEN.
Request
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

12 errors, each a status and a sentence
400--address is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid domain name
400X-Urbestack-Address must carry the client's own IPv4 address
401Unknown key
402This node refuses changes: <why>
403The call came from <remote> but the server says its address is <said>. A server behind NAT cannot be a client
403This key belongs to the client at <c.address>, and the call came from <remote>
403This server was removed from the distribution network on
410This server is no longer a node of the distribution network: it
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.28 on 12 Nov 2026.
urbestack.com/docs/api/post-dns-distribution-zones-name-handover/