Developers

Simple API access for the lookup engine

Use the public route for quick integrations, internal dashboards, or scripts.

GET example
/api?domain=example.com&type=ALL

Endpoint

/api accepts the query parameters domain and type.

Export route

/export supports format=json or format=csv with the same query parameters.

Supported types

A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA

Parameters

Request format

GET /api?domain=example.com&type=MX
domain: required. Accepts a domain like example.com.
type: optional. Use ALL or a supported record type.
Response

JSON fields

{
  "ok": true,
  "app": { ... },
  "result": {
    "domain": "example.com",
    "requested_type": "ALL",
    "total_records": 0,
    "records": { ... },
    "health": [ ... ]
  }
}
Notes

Implementation notes

The endpoint returns JSON with an ok flag and the lookup result payload.
Validation errors return HTTP 422 with a readable error message.
ResolverDock relies on the server's DNS resolver and native PHP DNS functions.
If you change routes on Nginx, make sure /api and /export are forwarded to their PHP files.