---
title: "`GET /internal/nodes/{node_id}/dns/changes?since=N`"
method: GET
path: "/internal/nodes/{node_id}/dns/changes"
tags: ["Internal DNS"]
---

# \`GET /internal/nodes/{node_id}/dns/changes?since=N\`

`GET /internal/nodes/{node_id}/dns/changes`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/internal/nodes/{node_id}/dns/changes`
- Auth: none declared

## Path parameters

- `node_id` integer, required

## Query parameters

- `since` integer

## Response `200`

Diff or full snapshot

- DnsChangesResponse
  - `full_snapshot` boolean, required: `true` ⇒ replace the local zone with `records`. `false` ⇒ merge `records` into the existing zone (and remove `removed_ids`).
  - `generation` integer, required: Highest generation included in this response. Agent ACKs this back.
  - `records` EndpointDto[], required
    - `fqdn` string, required
    - `generation` integer, required
    - `id` integer, required
    - `node_id` integer, nullable
    - `owner_id` integer, required
    - `owner_kind` string, required
    - `record_type` string, required
    - `target_ip` string, nullable
    - `target_port` integer, nullable
    - `ttl` integer, required
  - `removed_ids` integer[], required: IDs the agent should remove from its zone. Always empty in the v1 protocol — the resolver reconciles by name on snapshot mode. Kept in the wire format so a future tombstone-based protocol doesn't require a breaking change.

## Other responses

- `401`: Missing or invalid bearer token
- `404`: Node not found
- `500`: Internal server error

## Changes

- **2026-05-30** `b72341d12f63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/internal/nodes/:node_id/dns/changes/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
