# POST /dns/distribution/hello

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

UrbeStack release 0.2.35 API operation in the dns group.

Verify a DNS distribution key and identify the server and client

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

Send the DNS distribution key issued by the receiving server's administrator as the bearer credential in the Authorization header. Set X-Urbestack-Address to the client's licensed IPv4 address. Both the header and the request's source IPv4 address must match the IPv4 address registered for the key. Clients behind NAT fail this check. The third installer option and the client's Distribution nodes tab use this operation before connecting.

The response gives the receiving server's hostname, UrbeStack version and nameservers, as well as the client's IPv4 address, label, zone count and node status. An accepted call updates the client's last call time, clears any previous refusal and marks a disconnected client as connected. The Clients tab shows the last call time and up to 300 characters of any recorded refusal reason.

A missing or invalid X-Urbestack-Address returns 400. A missing or unrecognized key returns 401 with the message Unknown key. An IPv4 address mismatch returns 403. Once a node accepts the key, every operation under /dns/distribution/ returns 402 while the node's license disallows use of UrbeStack.

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 the departure time, zones and 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.

- `hostname` (string): Hostname of the client's web interface. UrbeStack saves valid hostnames for display in the receiving server's Clients tab.
- `names` (array of string): Domain names to check for overlaps, such as a customer's new domain or the caller's own zone names before connecting or joining. UrbeStack skips invalid entries, checks valid names up to its limit and uses them only for the current request.

## 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/hello" \
  -H "Content-Type: application/json" \
  -d '{
    "hostname": "server.example.com",
    "names": [
      "text"
    ]
  }'
```

Response, 200 OK:

```
{
  "client": {
    "address": "info@example.com",
    "label": "my laptop",
    "node": true,
    "zones": 1
  },
  "clients": [
    {
      "address": "info@example.com",
      "label": "my laptop",
      "last_seen_at": "text"
    }
  ],
  "hostname": "server.example.com",
  "nameservers": [
    "text"
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ],
  "overlaps": [
    {
      "name": "alice",
      "relation": "same",
      "server": "text",
      "zone": "text"
    }
  ],
  "version": "0.0.1"
}
```

## Errors

- 400: --address is required
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 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 
- 404: Setting '<key>' not found
- 410: This server is no longer a node of the distribution network: it 
