---
title: "Resolve a name from one node's resolver and show the answer."
method: POST
path: "/cluster/dns/resolve"
tags: ["Nodes"]
---

# Resolve a name from one node's resolver and show the answer.

`POST /cluster/dns/resolve`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/cluster/dns/resolve`
- Auth: HTTP bearer

## Request body

- DnsResolveRequest: `POST /cluster/dns/resolve`.
  - `name` string, required: The name, e.g. `production.shop.temps.local`.
  - `node_id` integer, required: The node whose resolver answers; 0 is the control plane.
  - `project_id` integer, nullable: Answer as one of this project's containers on that node would be answered, its network policy included.
  - `record_type` string, nullable: `A` (default), `AAAA`, `CNAME`, `SRV` or `TXT`.
  - `sandbox_id` string, nullable: Ask as one of your sandboxes (its public id): whether an internal access grant lets it call the name. Not with `project_id`.

## Response `200`

The answer

- DnsResolveResponse
  - `answers` DnsResolvedRecord[], required
    - `data` string, required
    - `name` string, required
    - `record_type` string, required
    - `ttl` integer, required
  - `asked_as` string, nullable: The container address the query was answered as.
  - `authoritative` boolean, required: Answered from the internal zone.
  - `internal_access` DnsInternalAccess, nullable: Whether the asking project may call an internal route (ADR 101 D7).
    - `reach` string, required: `same_project`, `granted`, `some_environments` or `not_granted`.
    - `setup_path` string, required: Where the owning project's grants are managed in the console.
    - `target_environment_id` integer, required
    - `target_environment_name` string, required
    - `target_project_id` integer, required
    - `target_project_name` string, required
    - `target_project_slug` string, required
  - `latency_ms` number, double, required
  - `name` string, required
  - `node_id` integer, required
  - `note` string, nullable: A caveat about how the answer was obtained.
  - `outcome` string, required: `noerror`, `nodata`, `nxdomain`, `servfail`, `error`.
  - `rcode` string, required: `NOERROR`, `NXDOMAIN`, `SERVFAIL`...
  - `record_type` string, required

## Other responses

- `400`: Invalid name or record type
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Node not found
- `409`: The resolver is not running, the agent is too old, or the project has no container on that node
- `500`: Internal server error
- `502`: The resolver could not be reached

## Changes

- **2026-11-14** `3d5be996525d`: 1 info
  - added the new optional request property `sandbox_id`
- **2026-11-14** `101ef74660bc`: 1 warning
  - removed the request property `sandbox_id`
- **2026-11-13** `9093c4f2c4cd`: 1 info
  - added the new optional request property `sandbox_id`
- **2026-11-12** `e052e98bb073`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/cluster/dns/resolve/post.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)
