Nodes

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

Changed on
post/cluster/dns/resolve

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

namestring required

The name, e.g. production.shop.temps.local.

node_idinteger required

The node whose resolver answers; 0 is the control plane.

project_idinteger nullable

Answer as one of this project's containers on that node would be answered, its network policy included.

record_typestring nullable

A (default), AAAA, CNAME, SRV or TXT.

sandbox_idstring nullable

Ask as one of your sandboxes (its public id): whether an internal access grant lets it call the name. Not with project_id.

Example request

{
  "sandbox_id": "sbx_a1b2c3d4e5f6"
}

Response

The answer

asked_asstring nullable

The container address the query was answered as.

authoritativeboolean required

Answered from the internal zone.

latency_msnumber double required
namestring required
node_idinteger required
notestring nullable

A caveat about how the answer was obtained.

outcomestring required

noerror, nodata, nxdomain, servfail, error.

rcodestring required

NOERROR, NXDOMAIN, SERVFAIL...

record_typestring required

Example response

{
  "internal_access": {
    "reach": "not_granted",
    "setup_path": "/projects/orders-api/settings/security#internal-access"
  }
}

Changes