# POST /dns/distribution/push

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

UrbeStack release 0.2.35 API operation in the dns group.

Queue a job to resend DNS zones

- Who may call it: administrator
- Token scope, any of: dns, all
- Answers: 202 Accepted

Queues a dns-push job and returns 202 with job. By default, the job sends zones that differ from the versions the destination nodes last acknowledged. Set all to true to send every zone, or use names to resend specific zones.

Use delete to remove named zones that the network still holds for this server after they were removed locally. Specify a node by IPv4 address to target that node. Omit node to target every node.

## As a command

- [urbestack-dns-push](https://urbestack.com/docs/commands/urbestack-dns-push.md): Sends pending zone updates and deletions to this server's DNS distribution nodes.

## Request body

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

- `all` (boolean): Whether to push every zone again, regardless of prior acknowledgments.
- `delete` (array of string): Names of zones to delete from the receiving nodes. These are the extra zones reported by the check that the nodes still hold for this server and that no longer exist on it.
- `names` (array of string): Names of the only zones to push.
- `node` (string): IP address of the node to push to. Omit this field to push to every node.

## 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/push" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "all": true,
    "delete": [
      "text"
    ],
    "names": [
      "text"
    ],
    "node": "text"
  }'
```

Response, 202 Accepted:

```
{
  "job": {
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": 1,
    "created_by_name": "text",
    "dismissed_at": "text",
    "finished_at": "2026-09-09T10:15:04Z",
    "id": 1,
    "lane": "short",
    "log": "",
    "params": {},
    "progress": 100,
    "result": {},
    "started_at": "2026-09-09T10:15:01Z",
    "status": "queued",
    "type": "rebuild",
    "usual_seconds": 1
  }
}
```

## Errors

- 400: A new job is queued or running
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid <what>: 
- 400: Invalid IPv4 address
- 400: Invalid domain name
- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Job parameters must be an object
- 400: Unknown job type
- 400: Username '<value>' is reserved
- 401: Authentication required
- 404: User '<user>' not found
