Skip to main content
Guides/DNS Records

DNS Rebinding Check: Understand and Use the Results

Detect DNS rebinding vulnerability

EdgeDNS Team·Updated ·6 min read

DNS rebinding: the attack defined by rotation, not static misconfiguration

DNS rebinding is a class of attack where a malicious website uses DNS to bypass the security boundary that normally separates the public internet from the private network behind a router or firewall. The attack exploits an asymmetry: browsers enforce the same-origin policy on domain names, not IP addresses. If a domain initially resolves to a public IP, then on the next query resolves to a private IP like `192.168.1.1`, the browser considers it the same origin and lets the page make requests to it — even though the page is now talking to a device the website should not be able to reach. The attack was first described in the 2007 Princeton paper by Jackson, Barth, Bortz, Shao and Boneh and remains a real threat against home routers, IoT hubs, cryptocurrency wallets, and developer tools.

Rebinding is rotation, not static private IPs. The most common mistake in rebinding tooling is to treat a domain as "vulnerable" because it returns a private IP. That's not rebinding — that's just a misconfiguration. Real rebinding is the rotation between public and private addresses across queries: the first request sees a public IP (the page loads), then a follow-up DNS lookup with a low TTL sees a private IP (now the JavaScript is talking to your router). A check that fires on a single private-IP response is calling everything rebinding; a check that observes rotation across multiple queries is testing the actual attack model. Tooling like NCC Group's Singularity is the operational reference.

Resolver-side filtering matters. RFC 6303 recommends that recursive resolvers refuse to return RFC 1918 addresses for public domains — that's the defense baked into Cloudflare 1.1.1.1, Google 8.8.8.8, and Quad9. But many corporate resolvers don't filter, and home routers often serve their LAN's own resolver that doesn't either. So the practical question "are my users exposed?" depends on which resolver they use. A meaningful check probes multiple resolvers and reports which ones filter and which leak.

The five things a real rebinding check looks at:

  • Multi-query rotation. Send the same query 3+ times, spaced 2-5 seconds apart, with `cd=1` to bypass resolver-side filtering. Real rebinding shows public IPs in some rounds and private IPs in others.

  • Resolver filter visibility. Query the same name at multiple public resolvers (1.1.1.1, 8.8.8.8, 9.9.9.9) and report which ones drop the private answers per RFC 6303 and which ones pass them through.

  • Private-IP coverage. RFC 1918 (`10/8`, `172.16/12`, `192.168/16`), loopback (`127/8`), link-local (`169.254/16`), CGNAT (RFC 6598 `100.64/10`), cloud-metadata (`169.254.169.254`), TEST-NET (RFC 5737), plus IPv6 equivalents (`fc00::/7`, `fe80::/10`, NAT64, Teredo, 6to4).

  • TTL. Very short TTLs (<60s) make rebinding fast enough to be useful to an attacker.

  • CNAME chain. Rebinding sometimes hides behind a CNAME that itself rotates — following the chain is part of the test.

Three questions a rebinding check answers:

  • Is this domain rotating between public and private addresses across queries — the actual rebinding signature?

  • Which public resolvers filter the private response per RFC 6303, and which leak it through?

  • Are my users (depending on which resolver they use) exposed?

The cost of ignoring DNS rebinding is the small-but-real risk that a user visiting a normal-looking website ends up with an attacker reaching into their router or development machine. The defenses are mostly application-level: bind internal services to localhost rather than `0.0.0.0`, validate destination IPs (not just hostnames) before making outbound requests, require auth on internal endpoints, and check the `Host` header. At the resolver layer, RFC 6303 filtering is the right default.

The DNS Rebinding Check endpoint, in plain language

Detect DNS (Domain Name System) rebinding vulnerability

Most "DNS (Domain Name System) rebinding checkers" only test for static private IPs and call that "rebinding" — but real rebinding is rotation, not static misconfiguration. The multi-query rotation test makes the endpoint live up to its name. The multi-resolver filter visibility answers the question users actually have: "are my users exposed?" — public resolvers (1.1.1.1, 8.8.8.8) drop RFC (Request for Comments) 1918 per RFC 6303, but internal corporate resolvers often don't, and the response shows you which.

What is actually happening when you call it

DNS (Domain Name System) rebinding is the rotation of a domain's answer between public and private addresses across queries — that's how attackers escape the same-origin policy. This endpoint runs the actual rotation test: 3 queries spaced 2 seconds apart, with `cd=1` to bypass resolver-side filtering, looking for round-to-round changes in the IP (Internet Protocol address) set's public/private mix. In parallel it queries multiple public resolvers (Cloudflare, Google, Quad9) and reports which ones drop RFC (Request for Comments) 1918 results per RFC 6303 — telling you which of your actual users (depending on which resolver they use) are exposed. Static checks still run: detection of RFC 1918, loopback (127/8), link-local (169.254/16), cloud metadata (169.254.169.254), CGNAT (RFC 6598), TEST-NET ranges (RFC 5737), and the IPv6 (Internet Protocol version 6) equivalents (fc00::/7, fe80::/10, NAT64, Teredo, 6to4).

Why this specific tool matters

Choose a task: Web Application Security. Assess if any external domains used by your application could resolve to internal IPs. Critical for applications that fetch user-supplied URLs (image proxies, OAuth callbacks).

Run the DNS Rebinding Check request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the DNS Rebinding Check reference to check the field definitions and supported options.

Info:

Available on the developer plan. The technical details: `GET /v1/dns/rebinding`.

When would I actually use this?

Web Application Security

Assess if any external domains used by your application could resolve to internal IPs. Critical for applications that fetch user-supplied URLs (image proxies, OAuth callbacks).

Use the finding: Identify and mitigate DNS (Domain Name System) rebinding risks before exploitation.

Internal Network Protection

Evaluate if external domains could be used to rebind to internal services.

Use the finding: Protect internal services from browser-based rebinding attacks.

SSRF Prevention Validation

Validate that your SSRF protection correctly blocks DNS (Domain Name System) rebinding — test domains should not resolve to private IPs even with low TTLs.

Use the finding: Verify SSRF defenses against DNS-based bypasses before deployment.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use dns_rebinding with domain=example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For DNS Rebinding Check, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This DNS Rebinding Check request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/dns/rebinding?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for DNS Rebinding Check

Start with the inputs below. Keep the same hostname, path, and options when comparing DNS Rebinding Check observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

domain

string

Yes

The domain to check for rebinding vulnerability

example.com

Interpret DNS Rebinding Check findings

Read these fields alongside the full response from your DNS Rebinding Check check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

domain

string

The queried domain

is_vulnerable

boolean

True if rotation was observed (real rebinding) OR static private IPs were found

risk

string

Risk level: low, medium, high

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

IP (Internet Protocol address) — A unique number that identifies a computer on the internet, like a phone number for a server.

IPv6 (Internet Protocol version 6) — The newer, longer kind of internet address. Looks like 2001:0db8:85a3::8a2e:0370:7334. Designed because the world ran out of IPv4 addresses.

RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

DNS Rebinding Check: Results Guide | EdgeDNS