Domain IP Lookup

Security at Domain IP Lookup

Domain IP Lookup answers one question: what do public DNS servers say about this name right now. This page lists what the code does around that question, its numbers, what it stores, and where the protection stops. The firewall, the TLS certificate and the hosting provider sit outside the code.

Input validation

Input is trimmed, limited to 2,048 characters, and rejected if it contains whitespace. A URL is reduced to its hostname, so https://WWW.Example.com:8443/a?x=1 becomes www.example.com. What remains must be a dotted name of at most 253 characters, with labels of at most 63 letters, digits or hyphens, ending in an alphabetic top-level domain. IPv4 addresses, anything containing a colon, and single-label names such as localhost are refused and never sent to DNS, so the search box cannot be used to ask about them. The check looks at shape only: intranet.local passes it and then gets no answer from public resolvers.

Public-address filtering

Every A and AAAA answer is compared with a fixed blocklist before it is returned. IPv4: 0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16 (which holds the cloud metadata address 169.254.169.254), 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 240.0.0.0/4 and 255.255.255.255. IPv6: ::, ::1, 64:ff9b::/96, 100::/64, fc00::/7, fe80::/10, ff00::/8 and 2001:db8::/32. An IPv4-mapped address such as ::ffff:10.0.0.1 is unwrapped and checked as IPv4, and a value that cannot be parsed counts as blocked. Blocked addresses are dropped without a note. If no A or AAAA address survives, the lookup fails.

DNS rebinding protection

Rebinding means a name that answers with a public address when it is checked and an internal one when it is used. This service has no gap between those moments, because it never connects to an address it resolves. It also runs the blocklist on every lookup and keeps no cache of its own, so a name that returns a public address now and 10.0.0.5 a minute later has the second answer withheld. The filter does not decode every IPv6 form that embeds an IPv4 address: 6to4 (2002::/16) is not unwrapped.

Timeouts and retries

Each record query has a hard limit of 5,000 ms, enforced by cancelling the query in flight. A query that fails for any reason is repeated once through the server's own resolver with the same limit. A timeout, SERVFAIL or REFUSED is retried until three attempts have been made, waiting about 250 ms and then about 500 ms. NXDOMAIN, invalid input and other errors are not retried. With the defaults, one lookup cannot run much longer than about 31 seconds, so a dead nameserver cannot hold a request open.

Rate limiting and job limits

Counters are kept per caller address and endpoint. Single lookups are limited to 100 per minute. The DNS tool endpoints allow 40 units per minute, and requests that fan out into several queries cost 2 or 3 units. Bulk lists are sent in batches of at most 25 domains, each domain costs one unit of a 1,500 per minute budget, and a list holds at most 10,000 domains. The contact form accepts 5 messages per hour. Going over returns HTTP 429 with a Retry-After header.

Data handling

There are no accounts. Single lookups and bulk lists are resolved and returned within the request, and the application does not write them to its database.

Worked examples

These use documentation values only. Those ranges are on the blocklist, so they are a safe way to watch the filter work.

https://WWW.Example.com:8443/a?x=1

Normalized to www.example.com. Scheme, port, path and query are discarded and the name is lowercased.

192.0.2.10

Refused before any DNS query: enter a domain name, not an IP address.

A domain whose only A record is 192.0.2.10

The address is withheld. With no other public A or AAAA answer, the lookup ends in a could-not-resolve error with the NXDOMAIN code, the same code a missing name gets.

A domain whose A records are 192.0.2.10 and 203.0.113.20

Each answer is checked on its own, and both are withheld: both sit in documentation ranges on the blocklist. With no public A or AAAA answer left, the lookup ends in a could-not-resolve error with the NXDOMAIN code, the same code a missing name gets.

101 single lookups from one address within a minute

The first 100 are answered. The 101st gets HTTP 429, with Retry-After set to the seconds left in the window.

What is stored and what is not

  • Domains typed into the lookup box, lists pasted into the bulk page and their results are not written to a database by the application. Access logs kept by the host or a proxy are outside the code, and this page does not describe them.
  • Rate-limit counters, keyed by caller address, live in server memory and disappear when the process restarts.
  • In the public routes, only unexpected failures are logged, with the input that triggered them. Results and ordinary DNS failures such as NXDOMAIN are not.
  • A contact form message (name, email address and text) is emailed through Resend to the support address and is not written to the database.
  • An optional job API with PostgreSQL tables for scheduled lookups exists in the code. It is off unless the operator sets a token, and the public pages do not use it. When on, it deletes run history older than 30 days daily.
  • Your browser keeps your theme choice in local storage and your language choice in a cookie lasting one year. Google's consent banner and ad scripts load on the live site and set their own cookies; the privacy policy covers advertising.

What the service refuses to do

  • Connect to a resolved address. There is no port scan, HTTP request or ping. The IP details tool queries DNS and one fixed RDAP bootstrap host, and only after the address passed the same filter.
  • Answer for private, loopback, link-local, multicast or reserved addresses. The reverse DNS and IP details tools reject them.
  • Show internal errors. A caller sees a stable code and a short message, such as RATE_LIMITED or DNS_TIMEOUT; the detail goes to the server log.
  • Serve the job API without a token. With none configured, those routes answer 404 as if they did not exist, and a wrong bearer token also gets 404.

Security boundaries

  • Only public DNS resolution is performed. Because the service never connects to the returned addresses, it cannot tell you whether a host is up, safe or serving what you expect.
  • A DNS answer can change after the lookup because of TTLs, failover, CDNs or geographic routing. A result is one moment from one network.
  • Rate limiting is process-local and held in memory. A restart clears it, and with several instances each one counts separately. The windows are fixed, so a caller can spend one budget at the end of a window and another at the start of the next.
  • The caller address comes from CF-Connecting-IP only when the operator sets TRUST_CLOUDFLARE_IP=1. Otherwise the rightmost X-Forwarded-For entry is used, then X-Real-IP, then a shared value of unknown. That holds only behind a proxy that sets those headers itself.
  • The blocklist covers A and AAAA answers. The text of NS, MX, CNAME and TXT answers is shown as the DNS server published it.
  • Queries leave as plain DNS. The application does not use DNS over HTTPS and does not check DNSSEC, so it trusts what the configured resolvers return.
  • Responses carry nosniff, X-Frame-Options SAMEORIGIN and a Permissions-Policy that disables camera, microphone and geolocation, plus a one-year Strict-Transport-Security header in production. There is no Content-Security-Policy.
  • Rate limits slow down misuse from one address and are no defense against a distributed flood. Firewalls, TLS and hosting availability sit outside the lookup code. No outside audit or certification is claimed; if this page differs from what you observe, please tell us.

Responsible disclosure

If you find a security problem, send it through the Contact page. Include the page or API path, the exact input, what you expected and what happened. Use documentation values such as example.com where you can, and leave out secrets and other people's personal data. Please do not load test the service or use it to probe systems you do not own.