/dns/distribution/zones/{name}/handover
0.2.28Unchanged since publicationTransfer a DNS zone to another client of the receiving server
noneUse 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 servertostringRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/dns/distribution/zones/{name}/handover" \
-H "Content-Type: application/json" \
-d '{
"to": "text"
}'200 OK{
"from": "text",
"to": "text",
"zone": "text"
}Errors
12 errors, each a status and a sentence400--address is required400Domain name required400Domain name too long400Invalid IPv4 address400Invalid domain name400X-Urbestack-Address must carry the client's own IPv4 address401Unknown key402This node refuses changes: <why>403The call came from <remote> but the server says its address is <said>. A server behind NAT cannot be a client403This 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 urbestack.com/docs/api/post-dns-distribution-zones-name-handover/