Clusters
Preview

Check a domain's DNS against a cluster

Looks up a name under the wildcard domain and compares the answer with the address of the cluster's ingress. It changes nothing. Without `domain` the cluster's saved domain is checked.

POST
/clusters/{clusterId}/addresses/dns-check
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

clusterId*string
Formatuuid
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
domain?string

The wildcard to check, such as *.prod.example.com. Omit it to check the saved one.

Lengthlength <= 200

Response Body

What the lookup found.

application/json
  1. response
state*string

ok when the wildcard resolves to the cluster's ingress address, missing when it resolves to nothing, mismatch when it resolves elsewhere, unchecked when there is no address to compare with.

Value in"ok""missing""mismatch""unchecked"
host?string

The name that was looked up.

resolved?array<string>
expected?string

The cluster's ingress address; absent when it has none.

message*string

What to tell the person, such as DNS points at 203.0.113.9.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/addresses/dns-check' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "state": "ok",  "host": "string",  "resolved": [    "string"  ],  "expected": "string",  "message": "string"}