Skip to Content
Reverse DNS API

Batch Reverse DNS Lookups1 Credit / item

Look up to 1000 IP addresses in one call, and read their results as a run.

POST
/v1/reverse/batch

Up to 1000 items in one call, each answered as its single call would answer it. Send the shared parameters beside the list. Every call creates a run and answers 202 with it at once: items already in the result cache are answered in it, and the rest show as pending. Read it at /v1/runs/{id} while its status is queued or running; each read shows the items finished so far. It ends completed, or failed when the run could not finish, which bills nothing. GET /v1/runs lists your runs. Each answered item (HTTP 200) costs 1 credit; failed items are not billed. The call reserves the cost of every item and is charged for the items answered when the run completes. See Batch Runs for the whole flow.

Authorization

See Authentication for details.

headerX-API-Key<token>

Provide your API key in an HTTP request header.

Request Body

application/json
  1. body
ips*array<>

The IPv4 or IPv6 addresses (or their reverse names) to look up, 1000 at most. Each is answered as /v1/reverse?ip= would answer it, and billed one credit only when answered. A CIDR range is refused: send it to /v1/reverse?ip=

Items1 <= items <= 1000
verbose?boolean

Return extra detail: totalElapsed, retries and params, plus each errors entry's detail when the lookup fails.

Defaultfalse
fcrdns?boolean

Look each PTR hostname up forward (A for IPv4, AAAA for IPv6) and say whether it resolves back to the address. Up to 10 hostnames per address are checked, 2 per address of a range

Defaulttrue
server?string

The DNS server to ask: a public resolver ID (cloudflare, google, quad9), any resolver address or hostname, or authoritative to walk the delegation from the root to the reverse zone's own nameservers. Defaults to Cloudflare

transport?string

DNS transport: udp (a truncated answer is asked again over TCP) or tcp

Default"udp"
Value in"udp""tcp"

Response Body

The run: queued, or completed already when every item was in the result cache. Read it by id

application/json
  1. response
id*string

The run ID, which names its tool: read it back at /v1/runs/{id}

tool*"reverse"

The tool the run belongs to

Value in"reverse"
endpoint*string

The endpoint that created it

status*string

queued or running until every item has an outcome, then completed. failed means the run itself could not finish and nothing was billed

Value in"queued""running""completed""failed"
createdAt*string
completedAt*|

When every item had an outcome; null until then

items*integer

How many items were sent

answered*|

How many items were answered (HTTP 200), the ones billed; null until completed

credits*|

What the run cost: answered items times the per-item price; null until completed

results*array<>|

One entry per item, in the order sent: the outcome of each finished item, the rest pending. Null for a failed run

errors*array<>

Why the run itself failed; empty otherwise. Each failed item has its own errors

Errors

See Errors for the response format.

invalid_request
A parameter is missing or not valid, or is not one this endpoint takes.
400
invalid_query
The query is not an IP address, a reverse name, or a range of at most 256 addresses.
400
blocked_address
The server resolves to a private or reserved address.
400
authentication_failed
No API key was sent, or it could not be checked.
401
invalid_api_key
The API key is not valid.
401
api_key_expired
The API key has expired.
401
out_of_credits
The account does not have the credits the call may cost.
402
forbidden
The caller may not use this tool.
403
server_not_found
No server can be found to ask.
422
rate_limited
The caller is over its rate limit; retry after the Retry-After header.
429
internal_error
An internal error on our side.
500
upstream_timeout
A DNS server did not answer in time.
503
upstream_unreachable
A DNS server could not be reached.
503
upstream_invalid
A DNS server failed the lookup (SERVFAIL or REFUSED) or sent an answer that cannot be used.
503
Example Request
curl -X POST 'https://api.dns.tools/v1/reverse/batch' \  -H 'Content-Type: application/json' \  -d '{  "ips": [    "8.8.8.8",    "2606:4700:4700::1111",    "1.1.1.1"  ]}'
Example Response
{  "id": "run_reverse_01m8sgqdy9xwat1gm1jckynkht",  "tool": "reverse",  "endpoint": "batch",  "status": "completed",  "createdAt": "2026-12-01T19:18:55.829Z",  "completedAt": "2026-12-01T19:18:56.747Z",  "items": 3,  "answered": 3,  "credits": 3,  "results": [    {      "query": "8.8.8.8",      "pending": false,      "cached": false,      "errors": [],      "result": {        "ip": "8.8.8.8",        "ptr": [          {            "ttl": 20597,            "hostname": "dns.google"          }        ],        "name": "8.8.8.8.in-addr.arpa",        "zone": {          "soa": {            "mname": "ns1.google.com",            "rname": "dns-admin.google.com",            "serial": 1032529178,            "minimum": 60          },          "name": "8.8.8.in-addr.arpa",          "classless": false,          "nameservers": [            "ns1.google.com",            "ns2.google.com",            "ns3.google.com",            "ns4.google.com"          ]        },        "found": true,        "query": "8.8.8.8",        "rcode": 0,        "fcrdns": {          "checks": [            {              "match": true,              "hostname": "dns.google",              "addresses": [                "8.8.4.4",                "8.8.8.8"              ]            }          ],          "result": "pass"        },        "server": "8.8.8.8",        "status": "NOERROR",        "generic": null,        "hostname": "dns.google",        "hostnames": [          "dns.google"        ],        "serverName": "dns.google",        "serverType": "public"      },      "status": 200    },    {      "query": "2606:4700:4700::1111",      "pending": false,      "cached": false,      "errors": [],      "result": {        "ip": "2606:4700:4700::1111",        "ptr": [          {            "ttl": 352,            "hostname": "one.one.one.one"          }        ],        "name": "1.1.1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.4.0.0.7.4.6.0.6.2.ip6.arpa",        "zone": {          "soa": {            "mname": "leah.ns.cloudflare.com",            "rname": "dns.cloudflare.com",            "serial": 2391052424,            "minimum": 1800          },          "name": "0.0.7.4.6.0.6.2.ip6.arpa",          "classless": false,          "nameservers": [            "leah.ns.cloudflare.com",            "micah.ns.cloudflare.com"          ]        },        "found": true,        "query": "2606:4700:4700::1111",        "rcode": 0,        "fcrdns": {          "checks": [            {              "match": true,              "hostname": "one.one.one.one",              "addresses": [                "2606:4700:4700::1001",                "2606:4700:4700::1111"              ]            }          ],          "result": "pass"        },        "server": "8.8.8.8",        "status": "NOERROR",        "generic": null,        "hostname": "one.one.one.one",        "hostnames": [          "one.one.one.one"        ],        "serverName": "dns.google",        "serverType": "public"      },      "status": 200    },    {      "query": "1.1.1.1",      "pending": false,      "cached": false,      "errors": [],      "result": {        "ip": "1.1.1.1",        "ptr": [          {            "ttl": 1538,            "hostname": "one.one.one.one"          }        ],        "name": "1.1.1.1.in-addr.arpa",        "zone": {          "soa": {            "mname": "alec.ns.cloudflare.com",            "rname": "dns.cloudflare.com",            "serial": 2347919506,            "minimum": 1800          },          "name": "1.1.1.in-addr.arpa",          "classless": false,          "nameservers": [            "alec.ns.cloudflare.com",            "mira.ns.cloudflare.com"          ]        },        "found": true,        "query": "1.1.1.1",        "rcode": 0,        "fcrdns": {          "checks": [            {              "match": true,              "hostname": "one.one.one.one",              "addresses": [                "1.0.0.1",                "1.1.1.1"              ]            }          ],          "result": "pass"        },        "server": "8.8.8.8",        "status": "NOERROR",        "generic": null,        "hostname": "one.one.one.one",        "hostnames": [          "one.one.one.one"        ],        "serverName": "dns.google",        "serverType": "public"      },      "status": 200    }  ],  "errors": []}