Can I resolve multiple domains in one request?
Yes. Repeat the domain query parameter for each domain, or pass domain as an array. Each domain returns its own result object in the response array.
Resolve A, AAAA, MX, TXT, NS, CNAME, and SOA records for any domain — or reverse-lookup an IP to its PTR hostname. Batch multiple domains in one call with inline per-record errors.
Why DNS Lookup API
/api/v1/dns
GET-only lookup. Combine domain and ip in one request when you need both forward and reverse results.
| Parameter | Type | Required | Description |
|---|---|---|---|
| domain | string | array | one of two | Domain(s) to resolve. Repeat parameter for batch queries. |
| ip | string | one of two | IP address for reverse PTR lookup, e.g. 8.8.8.8. |
| type | string | array | no | Record type: A, AAAA, MX, TXT, NS, CNAME, SOA, PTR, or ALL. Default A. |
Batch MX lookups across domains, or reverse-resolve an IP to its PTR hostnames.
GET https://datpaq.com/api/v1/dns?domain=example.com&domain=google.com&type=MX
GET https://datpaq.com/api/v1/dns?ip=8.8.8.8
Error reference
Per-record DNS failures appear inline — the rest of a batch response still returns successfully.
{
"domain": "example.invalid",
"records": {
"A": { "error": "ENOTFOUND" }
}
}FAQ
Yes. Repeat the domain query parameter for each domain, or pass domain as an array. Each domain returns its own result object in the response array.
The API returns HTTP 200 with an inline error object inside records for that type, e.g. { "error": "ENOTFOUND" }, without failing the entire request.
Create an API key in your Datpaq dashboard and send it with each request as a bearer token in the Authorization header.
Yes. Datpaq APIs include a free tier for building, testing, and small production workloads before you move to a paid plan.
Datpaq APIs use REST over HTTPS and return JSON by default. Endpoint docs show the supported methods, query parameters, request bodies, and response fields.
Each API documents rate limits, validation rules, and error responses in the landing page and API docs so integrations can retry and fail cleanly.
Forward and reverse DNS resolution with batch support and inline error handling — built for security tools and infrastructure monitoring.