Domain IP Lookup

How it works

From the text you type to a row in the result table, including the rows that fail.

A lookup here is a set of DNS queries sent from the server, with checks before and after. The domain lookup uses no third-party lookup API, and the public lookups keep no database of past answers. This page follows one domain through the code, then a list of up to 10,000, and ends with what the output cannot prove.

One domain, five steps

1. You enter a domain or a URL

The box takes example.com or a full address such as https://www.example.com:8443/path?q=1. An IP address or a name with no dot, such as localhost, is refused with a short message. To go from an IP address to a name, use the reverse DNS tool or IP Lookup.

2. The input is cleaned up

The scheme, credentials, port, path, query and trailing dot are removed and the name is lowercased, so https://Example.COM:8443/a?b=1 becomes example.com. Unicode labels become punycode: bücher.example.com turns into xn--bcher-kva.example.com. The result must be letters, digits and hyphens, at most 63 characters per label and 253 in total, ending in a top-level domain of 2 to 63 letters. A name under an internationalized top-level domain, such as .рф, is therefore rejected.

3. Six queries run side by side

The server asks for A, AAAA, NS, MX, CNAME and TXT records at the same time, using Node.js's dns.Resolver pointed at the configured public resolvers. Each query has a 5-second limit. A query that fails there is repeated once against the server's own resolver, because some networks block public DNS. MX answers read as priority and host (10 mail.example.com), and a split TXT record is joined.

4. Addresses are filtered, then judged

Every A and AAAA answer is compared with the reserved ranges and dropped on a match. If at least one public address is left, the lookup succeeds. If none is left, it fails, and the error code comes from the failed query, preferring the A query. When both queries returned data and all of it was filtered out, the code is NXDOMAIN. That code also covers a name that exists but has no A or AAAA record, such as a mail-only domain. The dedicated tools separate "no such name" from "no data of this type".

5. Transient failures are retried

A timeout, SERVFAIL or REFUSED can clear on its own, so the lookup runs again, three attempts in total, waiting about 250 ms and then about 500 ms. NXDOMAIN and invalid input are final. The "Resolved in N ms" line covers all attempts and the waits between them.

What a result looks like

The single lookup endpoint, POST /api/lookup, answers with this JSON. The addresses are documentation placeholders. The live service filters those ranges and would never return them.

{
  "status": "success",
  "result": {
    "domain": "example.com",
    "input": "https://Example.com/",
    "ipv4": ["192.0.2.10", "192.0.2.11"],
    "ipv6": ["2001:db8::10"],
    "ns": ["ns1.example.net", "ns2.example.net"],
    "mx": ["10 mail.example.com"],
    "cname": [],
    "txt": ["v=spf1 -all"],
    "status": "success",
    "attempts": 1,
    "lookupStartedAt": "2026-11-09T10:15:00.120Z",
    "lookupCompletedAt": "2026-11-09T10:15:00.188Z",
    "responseTimeMs": 68
  }
}

A failed lookup has the same fields. The record lists are empty, status is error, and an error code and message are added. Here domain holds the text you typed, trimmed, not the cleaned-up name.

{
  "status": "success",
  "result": {
    "domain": "no-such-name.example.com",
    "input": "no-such-name.example.com",
    "ipv4": [], "ipv6": [], "ns": [], "mx": [], "cname": [], "txt": [],
    "status": "error",
    "errorCode": "NXDOMAIN",
    "error": "Could not resolve no-such-name.example.com (NXDOMAIN).",
    "attempts": 1,
    "lookupStartedAt": "2026-11-09T10:15:02.004Z",
    "lookupCompletedAt": "2026-11-09T10:15:02.047Z",
    "responseTimeMs": 43
  }
}

Why a row fails

CodeMeaningRetried
INVALID_DOMAINThe input could not become a public hostname: spaces, an IP address, no dot, a bad top-level domain or an over-long label.No
NXDOMAINNo usable address: the name does not exist, has no A or AAAA record, or answers only with filtered addresses.No
DNS_TIMEOUTNo answer within 5 seconds, including the fallback to the server's own resolver.Yes, up to 3 attempts
DNS_SERVFAILThe resolver could not get a valid answer, for example because the domain's nameservers are down or its DNSSEC is broken.Yes, up to 3 attempts
DNS_REFUSEDThe resolver refused the query.Yes, up to 3 attempts
DNS_ERRORAny other resolver error.No
INTERNAL_ERRORSet by the bulk page, not by DNS, on every row of a batch it gave up on after repeated network or server errors.The batch is retried, see below

A bulk run, from list to table

The public Bulk lookup tab does not create a job in a database. The browser coordinates the run and the server answers one small request at a time.

Create: split the list

The text is split on new lines and commas, trimmed, and empty entries are dropped. Duplicates are kept and looked up twice. More than 10,000 entries is refused before anything is sent.

Queue: batches wait in the page

The list is cut into batches of 25. Three workers in the page each take the next unsent batch, so at most 75 domains are outstanding. Each batch is one POST to /api/bulk-lookup/batch, where the server resolves 10 domains at a time. Every domain counts against a budget of 1,500 per minute per IP address.

Progress: counters and rows

Each finished batch adds its rows to the table in the original order and moves the counters: processed of total, successes, failures and a percentage. Leaving the page stops the run.

Rate limits and batch retries

On HTTP 429 the page waits for the Retry-After value (5 seconds if absent, never more than 60) and sends the same batch again. Other errors wait 500 ms times the attempt number. A batch gets up to six attempts, then its rows are marked INTERNAL_ERROR and the rest of the list carries on. At 1,500 domains per minute, a 10,000-domain list takes at least six minutes.

Results: what the table shows

The table has Domain, Primary IP, IPv4 and IPv6 columns, 25 rows per page. The primary IP is the first IPv4 address, or the first IPv6 address when there is no IPv4. A failed row shows the error text in red. NS, MX, CNAME and TXT are fetched for every row but not displayed here.

Export: job API only

The public page has no export. The job API, which an operator turns on with a token, runs the same lookup function in a background worker and saves each row in Postgres. Export streams those rows, 1,000 at a time, as CSV or JSON.

The job API lifecycle

The job API follows the same five stages on the server. POST /api/bulk-lookup stores the list and returns 202 with a job ID. The job goes into a BullMQ queue in Redis. A worker takes up to 5 jobs at once and resolves each job's domains 20 at a time, or up to 200 if the request asks. Result rows are saved 200 at a time and can be paged through while the run continues (GET /api/jobs/:id/results, 50 rows by default, 500 at most). GET /api/jobs/:id/progress sends the run's status once a second as server-sent events. The processed and failed counts are written only when the run finishes, so mid-run that stream reports 0 processed. A failed domain is a row, not a failed job.

The CSV shape

domain,ipv4,ipv6,status,response_time_ms,error_code
example.com,192.0.2.10;192.0.2.11,2001:db8::10,success,68,
no-such-name.example.com,,,error,43,NXDOMAIN
slow.example.net,,,error,30812,DNS_TIMEOUT

One header line, then one line per domain. Several addresses in one cell are joined with semicolons, and a cell with a comma or quote is quoted. The JSON export carries every stored column, including NS, MX, CNAME, TXT, attempts and both timestamps.

What the output cannot prove

  • A CDN or proxy address is not the origin. The address belongs to the CDN's edge, and the lookup cannot see the server behind it.
  • An answer is one resolver's view at one moment. TTLs, geographic DNS and load balancing can make two lookups seconds apart differ.
  • Resolving is not reachability. The service never connects to an address, so it cannot say that a web server answers on it.
  • A shared address says nothing about ownership. Unrelated sites often share one IP address. IP Lookup shows who holds the address block, not who runs the site.