# dnsbin.ca — full documentation


---

---
title: "Documentation — dnsbin.ca"
source: "https://dnsbin.ca/docs"
---
[dnsbin.ca](/)›Docs

Documentation

# Using dnsbin

Find a tool for your DNS question, follow a troubleshooting guide, or automate checks with the API and MCP.

Start here

## Resolve a name, diagnose a problem, or automate the check.

Use the browser tools to investigate a domain, then call their JSON endpoints to repeat checks from a script.

[Open the toolbox](/)[Browse workflow guides](#workflows)

Choose your path

## What are you trying to do?

[Resolve**Look up a record**Get the current A, MX, TXT, or any record for a host.](#toolbox) [Diagnose**Fix a DNS problem**Propagation, DNSSEC, delegation, and mail records.](/docs/workflows/verify-propagation) [Investigate**Trace ownership**RDAP, reverse PTR, and blocklist reputation.](/docs/workflows/investigate-domain-or-ip) [Automate**Script it**REST, MCP, and OpenAPI for CI and agents.](/docs/workflows/automate-with-api)

Workflow guides

## Practical recipes

Each guide is a working recipe — when to reach for it, the steps, and copyable commands.

[**Run a guided domain report**Get one plain-language health check for a whole domain — apex records, DNSSEC, mail, and delegation — without running each tool by hand.](/docs/workflows/run-a-domain-report)[**Resolve a single record**Look up one record type for a host, read its TTL and data, and confirm what a public resolver returns right now.](/docs/workflows/resolve-a-record)[**Audit every record for a host**Fetch the common record-type set in one request, then probe well-known subdomains to map a domain quickly.](/docs/workflows/audit-all-records)[**Verify a change has propagated**Run the same query across several public resolvers and watch the agree/differ verdict and per-resolver latency.](/docs/workflows/verify-propagation)[**Validate a DNSSEC chain of trust**Confirm a domain is DNSSEC-signed, that a validating resolver authenticates it (the AD flag), and that the chain of trust is complete from the TLD down to the domain.](/docs/workflows/validate-dnssec)[**Diagnose email DNS**Inspect a domain’s MX, SPF, DMARC, and DKIM records together to find why mail bounces or lands in spam.](/docs/workflows/diagnose-email-dns)[**Investigate a domain or IP**Pull structured registration data with RDAP and resolve an address back to its hostname with reverse PTR.](/docs/workflows/investigate-domain-or-ip)[**Trace the delegation path**Walk the delegation chain label by label, from the top-level domain down to a domain’s authoritative nameservers.](/docs/workflows/trace-delegation)[**Check an IP against blocklists**Test an IPv4 address against common DNS blocklists (RBLs) to see whether mailers are rejecting it.](/docs/workflows/check-blocklists)[**Compare browser and server requests**Query the same public DoH resolver from your browser and Cloudflare’s edge, then compare the answers side by side.](/docs/workflows/compare-dns-views)[**Capture and share a snapshot**Freeze a lookup result as a read-only, shareable page so a record’s value is preserved for a ticket or handoff.](/docs/workflows/share-a-snapshot)[**Automate with the API and MCP**Drive every dnsbin tool from a script, a CI pipeline, or an AI agent using the JSON REST API or the MCP server.](/docs/workflows/automate-with-api)

Reference

## The toolbox

Each tool has a matching JSON endpoint for use in scripts.

| Group | Tool | Endpoint | What it answers |
| --- | --- | --- | --- |
| Diagnose | **Domain report** | `/api/v1/report` | Guided whole-domain check (apex, DNSSEC, mail, trace) with plain-language findings. |
| Resolve | **Lookup** | `/api/v1/lookup` | One record type for a host (A, AAAA, MX, TXT, …). |
| Resolve | **All records** | `/api/v1/lookup-all` | The common record-type set in a single request. |
| Diagnose | **Propagation** | `/api/v1/propagation` | The same query across public resolvers, with latency. |
| Diagnose | **DNSSEC** | `/api/v1/dnssec` | Signed/validated status and the chain of trust. |
| Diagnose | **Trace** | `/api/v1/trace` | The delegation path from the root to the zone. |
| Investigate | **RDAP / WHOIS** | `/api/v1/rdap` | Registration and ownership for a domain or IP. |
| Investigate | **Reverse PTR** | `/api/v1/reverse` | The hostname an IP address claims. |
| Investigate | **Blocklist** | `/api/v1/dnsbl` | Whether an IPv4 is listed on common RBLs. |
| Investigate | **Discovery** | `/api/v1/discover` | Common subdomains probed for live records. |
| Email | **Mail health** | `/api/v1/mail` | MX, SPF, DMARC, and DKIM in one parsed view. |
| Share | **Snapshots** | `/api/v1/snapshots` | Read-only, shareable result pages. |

Reference

## Record types

Lookup and Propagation accept any of these 18 types:

`A``AAAA``MX``TXT``NS``CNAME``SOA``CAA``PTR``SRV``HTTPS``SVCB``TLSA``DS``DNSKEY``SSHFP``NAPTR``CDS`

A / AAAAIPv4 and IPv6 addresses for a host.CNAMEAn alias pointing one name at another.MXMail exchangers that accept a domain’s email.TXTFree-form text — SPF, verification tokens, and policies.NS / SOAAuthoritative nameservers and the zone’s start-of-authority.CAAWhich certificate authorities may issue for the domain.DS / DNSKEYDNSSEC delegation-signer and public keys.HTTPS / SVCBService binding hints (ALPN, ports, ECH) for connections.

Reference

## Resolvers

Pick which public resolver answers. Most speak JSON DoH; OpenDNS is wire-format and decoded on the server.

| Resolver | Notes | Browser-direct? |
| --- | --- | --- |
| **Cloudflare** | JSON DoH (1.1.1.1). Default. | yes |
| **Google** | JSON DoH (8.8.8.8). | yes |
| **DNS.SB** | JSON DoH, privacy-focused. | yes |
| **AdGuard** | JSON DoH with filtering. | server-side |
| **OpenDNS** | Wire-format DoH, decoded server-side. | server-side |

Reference

## Where a lookup runs

For Lookup, the *Run from* selector chooses where requests to the selected public DoH resolver originate. It does not query your device’s configured DNS server or private split-horizon DNS. [Compare browser and server requests →](/docs/workflows/compare-dns-views)

| Mode | Runs from | Best for |
| --- | --- | --- |
| **Server** | The selected public resolver, queried from Cloudflare’s edge. | Checking the resolver’s answer from the server. |
| **Your browser** | The selected public resolver, queried from your device via DoH. | Checking its answer and DoH reachability from your device. |
| **Hybrid** | Single Lookup: browser-first, with server fallback. | Resilient single-record lookups. |
| **Both** | The selected public resolver from server and browser, side by side. | Comparing answers from two request origins. |

Sharing

## Snapshots

Any result can be frozen as a public, read-only page — useful for tickets and handoffs. The value won’t change when the record does.

- Click **Save snapshot** under any result, or `POST /api/v1/snapshots` — public and rate-limited, no key required.
- Read one back at `GET /api/v1/snapshots/{id}` or its share URL.
- **Retention:** anonymous snapshots are kept for 30 days. Save with an account (a `dns:create` key or a signed-in session) and the snapshot persists until you delete it.
- Manage your own: list with `GET /api/v1/snapshots`, delete with `DELETE /api/v1/snapshots/{id}` (`dns:delete`), or use the delete controls on your [account page](/account).
- Snapshots are public — don’t capture anything you wouldn’t share.

[Snapshot workflow →](/docs/workflows/share-a-snapshot)

Automation

## API, MCP, and agents

Read endpoints are public and need no auth. Authenticated writes and MCP tools use API keys from the authority site.

[**OpenAPI 3.1**The full REST contract for every endpoint.](https://dnsbin.ca/api/v1/openapi.json) [**MCP server**Model Context Protocol tools at `/mcp`.](/docs/mcp) [**llms.txt**A machine-readable map for LLMs and agents.](https://dnsbin.ca/llms.txt)

[Automation workflow →](/docs/workflows/automate-with-api)

Privacy & limits

## Good to know

- Lookups are not logged as user history server-side; recent queries live only in your browser.
- Snapshots are stored only when you explicitly save one. Anonymous snapshots are deleted after 30 days; account-owned snapshots stay until you delete them.
- Public resolvers see the names you query — don’t look up secrets.

- [Privacy](https://pastebin.ca/privacy)
- [Terms](https://pastebin.ca/terms)
- [Abuse](https://pastebin.ca/abuse)


---

---
title: "MCP — dnsbin.ca"
source: "https://dnsbin.ca/docs/mcp"
---
[dnsbin.ca](/)›[Docs](/docs)›MCP

# dnsbin.ca MCP server

dnsbin exposes a streamable HTTP Model Context Protocol endpoint for agents at `/mcp`. It uses the same DNS and snapshot cores as the REST API, so tool results match the browser and JSON endpoints.

**Endpoint**

`https://dnsbin.ca/mcp`

**Auth**

OAuth or Bearer API keys from `https://pastebin.ca`

**Scopes**

`dns:read` `dns:create` `dns:delete`

## Discovery

```
GET https://dnsbin.ca/.well-known/agent.json
GET https://dnsbin.ca/.well-known/oauth-protected-resource/mcp
GET https://dnsbin.ca/llms.txt
GET https://dnsbin.ca/api/v1/openapi.json
```

## Tools

| Tool | Scope | Purpose |
| --- | --- | --- |
| `whoami` | none | Echo account id, scopes, audience, and token kind. |
| `domain_report` | `dns:read` | Guided whole-domain diagnostic (apex, DNSSEC, mail, trace) with findings. |
| `dns_lookup` | `dns:read` | Resolve DNS records through a selected DoH resolver. |
| `dns_lookup_all` | `dns:read` | Resolve the common record-type set for a host in one call. |
| `dns_propagation` | `dns:read` | Compare answers across public resolvers. |
| `dnssec_check` | `dns:read` | Summarize DNSSEC AD/DS/RRSIG status. |
| `reverse_dns` | `dns:read` | Resolve PTR records for an IP address. |
| `rdap_lookup` | `dns:read` | Fetch RDAP data for a domain or IP. |
| `mail_health` | `dns:read` | Inspect MX, SPF, DMARC, and DKIM records. |
| `discover_subdomains` | `dns:read` | Probe common subdomains for DNS records. |
| `dns_trace` | `dns:read` | Show the delegation path (recursive view) with NS/DS per label. |
| `dnsbl_check` | `dns:read` | Check an IPv4 address against common DNSBL/RBL zones. |
| `save_snapshot` | `dns:create` | Persist a shareable read-only DNS result snapshot. |
| `list_snapshots` | `dns:read` | List snapshots saved to the authenticated account. |
| `delete_snapshot` | `dns:delete` | Delete a snapshot owned by the authenticated account. |

## Example

```
curl -i https://dnsbin.ca/mcp \
  -H 'Authorization: Bearer pbca_live_…' \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

MCP access tokens are audience-bound to `https://dnsbin.ca/mcp`. REST API keys are audience-bound to `https://dnsbin.ca`.

[← Back to docs](/docs)[Automation workflow →](/docs/workflows/automate-with-api)


---

---
title: "Run a guided domain report — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/run-a-domain-report"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Start here

# Run a guided domain report

Get one plain-language health check for a whole domain — apex records, DNSSEC, mail, and delegation — without running each tool by hand.

When to use it

## Use this when

- You are onboarding, auditing, or triaging a domain and want a fast overall picture.
- You want a shareable summary that flags the obvious problems before you dig into individual tools.

Steps

## Do this

1. **Enter the domain**Open Domain report, type the apex (example.com), and run it. dnsbin composes the apex lookup, DNSSEC check, mail health, and delegation trace in one pass — it reuses the same checks as the individual tools, so nothing diverges.
2. **Read the findings**The Findings list turns each check into plain language with a good/warn/bad badge — missing DMARC, an unsigned zone, no MX, and so on. Each section below shows the full detail behind a finding.
3. **Go deeper when needed**Enable Deep scan to also probe a wider set of common subdomains, or jump to the dedicated tool (DNSSEC, Mail, Trace) for a focused view. Save snapshot keeps a shareable copy of the whole report.

Examples

## Copyable commands

REST

```
curl 'https://dnsbin.ca/api/v1/report?domain=example.com'
```

REST — deep

```
curl 'https://dnsbin.ca/api/v1/report?domain=example.com&deep=1'
```

Deep link

```
https://dnsbin.ca/?tab=report&domain=example.com
```

Operational notes

## Keep in mind

- The report never runs its own DNS queries — it composes the same lookup, DNSSEC, mail, and trace checks the individual tools use, so results always match.
- A single failing check is isolated: its section is skipped rather than sinking the whole report.


---

---
title: "Resolve a single record — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/resolve-a-record"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Records and types

# Resolve a single record

Look up one record type for a host, read its TTL and data, and confirm what a public resolver returns right now.

When to use it

## Use this when

- You need the current A/AAAA, MX, TXT, CNAME, NS, CAA, or other record for a host.
- You want to confirm what a specific public resolver is serving at this moment.

Steps

## Do this

1. **Pick the record type**Open Lookup, enter the host, and choose a type — A/AAAA for addresses, MX for mail routing, TXT for verification strings, CNAME for aliases, NS for delegation.
2. **Choose a resolver**Cloudflare answers by default. Switch to Google, AdGuard, DNS.SB, or OpenDNS to compare what another operator is serving.
3. **Read the answer**Each row shows the name, type, TTL, and data. Hover any value to copy it, or use Save snapshot to keep a shareable link.

Examples

## Copyable commands

REST

```
curl 'https://dnsbin.ca/api/v1/lookup?name=example.com&type=MX&resolver=cloudflare'
```

Deep link

```
https://dnsbin.ca/?tab=lookup&name=example.com&type=MX&resolver=google
```

Operational notes

## Keep in mind

- TTL is the resolver’s remaining cache lifetime, not the zone’s configured TTL.
- On a web-app deep link, add mode=client to query the selected public DoH resolver from your browser, or mode=both to compare its answers to browser and server requests. REST lookups run on the server.


---

---
title: "Audit every record for a host — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/audit-all-records"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Inventory and discovery

# Audit every record for a host

Fetch the common record-type set in one request, then probe well-known subdomains to map a domain quickly.

When to use it

## Use this when

- You are onboarding or auditing a domain and want a fast inventory.
- You want A/AAAA/CNAME/MX/TXT/NS/SOA/CAA without running eight separate lookups.

Steps

## Do this

1. **Run All records**Open All records, enter the host, and choose a resolver. dnsbin queries the common record types in parallel and groups the answers.
2. **Skim the grouped result**Each record type is its own section; empty types are omitted so the signal stays high.
3. **Probe subdomains**Switch to Discovery to test a guided core set of common names (www, mail, api, ns1, …) for live records the apex doesn’t reveal. Enable Deep scan to also probe a wider exploratory set (dev, staging, vpn, cpanel, …).

Examples

## Copyable commands

REST — all records

```
curl 'https://dnsbin.ca/api/v1/lookup-all?name=example.com&resolver=cloudflare'
```

REST — discovery (SSE)

```
curl -N -H 'Accept: text/event-stream' \
  'https://dnsbin.ca/api/v1/discover?domain=example.com'
```

REST — deep discovery

```
curl 'https://dnsbin.ca/api/v1/discover?domain=example.com&deep=1'
```

Operational notes

## Keep in mind

- Discovery probes a fixed list of common subdomains — it is not a zone transfer (AXFR) and won’t reveal every name.
- The default core scan stays fast and low-noise; add deep=1 (or tick Deep scan) only when you want the wider exploratory list.
- Discovery streams progressively over Accept: text/event-stream; lookup-all returns a single JSON response.


---

---
title: "Verify a change has propagated — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/verify-propagation"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Rollout and caching

# Verify a change has propagated

Run the same query across several public resolvers and watch the agree/differ verdict and per-resolver latency.

When to use it

## Use this when

- You just changed a record and need to know which resolvers still serve the old value.
- Users report stale results and you suspect resolver caching or a slow rollout.

Steps

## Do this

1. **Enter the host and type**Open Propagation, type the host, and pick the record type you changed.
2. **Compare resolvers**dnsbin queries each public resolver and shows the data plus response latency side by side.
3. **Read the verdict**A single agree/differ banner tells you whether every resolver returned the same answer yet.

Examples

## Copyable commands

REST

```
curl 'https://dnsbin.ca/api/v1/propagation?name=example.com&type=A'
```

REST — streamed (SSE)

```
curl -N -H 'Accept: text/event-stream' \
  'https://dnsbin.ca/api/v1/propagation?name=example.com&type=A'
```

Operational notes

## Keep in mind

- Differences almost always mean caching and TTL, not a misconfiguration — wait out the previous record’s TTL and re-check.
- Resolvers may answer from different anycast nodes, so latency is indicative, not a benchmark.


---

---
title: "Validate a DNSSEC chain of trust — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/validate-dnssec"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Signing and validation

# Validate a DNSSEC chain of trust

Confirm a domain is DNSSEC-signed, that a validating resolver authenticates it (the AD flag), and that the chain of trust is complete from the TLD down to the domain.

When to use it

## Use this when

- You enabled DNSSEC and want to confirm the chain validates end to end.
- Resolution fails with SERVFAIL and you suspect a broken signature or a missing DS record at the parent.

Steps

## Do this

1. **Check the domain**Open DNSSEC and enter the domain. dnsbin queries with DNSSEC requested and reports whether the answer is Authenticated (AD).
2. **Walk the chain**Each signed zone from the TLD down to the domain is shown with its DS and DNSKEY presence, so you can see exactly where the chain holds or breaks.
3. **Confirm against a known-bad**Compare a signed domain with a deliberately broken one to see the difference in the verdict.

Examples

## Copyable commands

REST — signed

```
curl 'https://dnsbin.ca/api/v1/dnssec?name=cloudflare.com'
```

REST — broken chain

```
curl 'https://dnsbin.ca/api/v1/dnssec?name=dnssec-failed.org'
```

Operational notes

## Keep in mind

- AD=true means the validating resolver cryptographically authenticated the answer — not merely that signatures exist.
- A signed zone still fails to validate if the parent has no matching DS record, which is the most common DNSSEC outage.


---

---
title: "Diagnose email DNS — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/diagnose-email-dns"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Deliverability

# Diagnose email DNS

Inspect a domain’s MX, SPF, DMARC, and DKIM records together to find why mail bounces or lands in spam.

When to use it

## Use this when

- Mail to or from a domain is bouncing, failing authentication, or landing in spam.
- You are standing up a new sending domain and need SPF, DKIM, and DMARC in place.

Steps

## Do this

1. **Run Mail health**Open Mail health and enter the domain. dnsbin gathers the mail-relevant records in one pass.
2. **Read the parsed policies**SPF is parsed into includes and the all qualifier; DMARC shows the policy (none/quarantine/reject) and reporting addresses.
3. **Check DKIM selectors**dnsbin probes common DKIM selectors so you can confirm a public key is published. Add your provider’s own selectors in the DKIM selectors field (or the selectors query param) to probe them too.

Examples

## Copyable commands

REST

```
curl 'https://dnsbin.ca/api/v1/mail?domain=example.com'
```

REST — custom DKIM selectors

```
curl 'https://dnsbin.ca/api/v1/mail?domain=example.com&selectors=s1,mandrill'
```

Operational notes

## Keep in mind

- A missing DMARC record or an SPF ending in +all is a deliverability red flag.
- DKIM selectors are probed from a common list, so an absent key may simply use a custom selector — pass it via selectors (comma- or space-separated) to check it directly.


---

---
title: "Investigate a domain or IP — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/investigate-domain-or-ip"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Ownership and registration

# Investigate a domain or IP

Pull structured registration data with RDAP and resolve an address back to its hostname with reverse PTR.

When to use it

## Use this when

- You need the registrar, registration dates, nameservers, or the network owner of an IP.
- You have an IP and want the hostname it claims via its PTR record.

Steps

## Do this

1. **Query RDAP**Open RDAP / WHOIS and enter a domain or IP. dnsbin returns structured registration, nameserver, and network-ownership data.
2. **Reverse the IP**Use Reverse PTR to find the hostname an address claims.
3. **Cross-check**Confirm the PTR’s forward record points back to the same IP — mismatches matter for mail and trust.

Examples

## Copyable commands

REST — RDAP

```
curl 'https://dnsbin.ca/api/v1/rdap?q=example.com'
```

REST — reverse PTR

```
curl 'https://dnsbin.ca/api/v1/reverse?ip=1.1.1.1'
```

Operational notes

## Keep in mind

- RDAP is the structured successor to WHOIS, but not every registry exposes the same fields.
- PTR records are set by the address’s owner and need not match forward DNS.


---

---
title: "Trace the delegation path — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/trace-delegation"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Delegation path

# Trace the delegation path

Walk the delegation chain label by label, from the top-level domain down to a domain’s authoritative nameservers.

When to use it

## Use this when

- You want to see exactly where resolution is delegated at each level.
- A lame or missing delegation is causing intermittent or partial failures.

Steps

## Do this

1. **Enter a host**Open Trace and enter a fully-qualified host such as www.example.com.
2. **Follow each step**Each delegation hop — TLD → domain → host — is listed with the NS records that own it and any DS record that secures it.
3. **Spot the break**A missing NS or DS at a hop pinpoints where delegation or DNSSEC stops.

Examples

## Copyable commands

REST

```
curl 'https://dnsbin.ca/api/v1/trace?name=www.google.com'
```

Operational notes

## Keep in mind

- This is a recursive-view trace of the delegation chain the server observes, not an iterative dig +trace run from your own machine.
- Pair it with the DNSSEC tool to confirm each DS hand-off actually validates.


---

---
title: "Check an IP against blocklists — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/check-blocklists"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Reputation

# Check an IP against blocklists

Test an IPv4 address against common DNS blocklists (RBLs) to see whether mailers are rejecting it.

When to use it

## Use this when

- Your mail server’s IP may be blocklisted and outbound mail is being rejected.
- You are vetting an address’s reputation before you start sending from it.

Steps

## Do this

1. **Enter the IPv4**Open Blocklist and enter the address. dnsbin queries each blocklist zone for a listing.
2. **Read per-zone results**Each RBL reports listed, clear, or unavailable; a listing usually carries a reason code from that provider.
3. **Request delisting**Follow up with the listing provider — delisting is handled by each blocklist operator, not dnsbin.

Examples

## Copyable commands

REST — listed test address

```
curl 'https://dnsbin.ca/api/v1/dnsbl?ip=127.0.0.2'
```

REST — a real address

```
curl 'https://dnsbin.ca/api/v1/dnsbl?ip=8.8.8.8'
```

Operational notes

## Keep in mind

- 127.0.0.2 is the conventional test address that every well-behaved RBL lists, so it’s useful to confirm the tool works.
- Some zones (such as Spamhaus) block queries from large public resolvers and report as unavailable rather than clean.
- Listings and delisting policies are per-provider; dnsbin only reports what each zone returns.


---

---
title: "Compare browser and server requests — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/compare-dns-views"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Vantage points

# Compare browser and server requests

Query the same public DoH resolver from your browser and Cloudflare’s edge, then compare the answers side by side.

When to use it

## Use this when

- You want to check that a public DoH resolver is reachable from your device.
- You want to compare the public resolver’s answers to requests from your browser and Cloudflare’s edge.

Steps

## Do this

1. **Choose a request origin**Use the Run from selector under the result area: Server queries the selected public resolver from Cloudflare’s edge, Your browser sends a direct DoH request from your device, Hybrid uses the browser when available, and Both runs the pair.
2. **Compare both columns**Both mode renders browser and server results with an agree/differ banner for the selected public resolver.
3. **Check browser reachability**A successful browser result confirms that your device reached the selected DoH endpoint and received an answer.

Examples

## Copyable commands

Deep link — both

```
https://dnsbin.ca/?tab=lookup&name=example.com&type=A&mode=both
```

Deep link — client only

```
https://dnsbin.ca/?tab=lookup&name=example.com&type=A&mode=client
```

Operational notes

## Keep in mind

- Browser-direct requests support Cloudflare, Google, and DNS.SB. For other resolvers, Client mode asks you to switch resolver or mode, while Both runs server-only. For a single Lookup, Hybrid falls back to the server when browser requests are unavailable or fail.
- These modes query public DoH resolvers. They do not query your device’s configured DNS server or private split-horizon DNS.
- Composite tools (DNSSEC, Mail health, Discovery, Trace, Blocklist) always run server-side; mode applies to record lookups.
- REST endpoints always execute on the server — client-side resolution is a browser feature of the web app.


---

---
title: "Capture and share a snapshot — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/share-a-snapshot"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Evidence and handoffs

# Capture and share a snapshot

Freeze a lookup result as a read-only, shareable page so a record’s value is preserved for a ticket or handoff.

When to use it

## Use this when

- You want to attach DNS evidence to a bug report or support ticket.
- You need a stable link to a result that won’t change when the underlying record does.

Steps

## Do this

1. **Run any lookup**Use any tool, then click Save snapshot in the action bar under the result.
2. **Copy the link**dnsbin stores the query metadata and result JSON and returns a public, read-only snapshot URL.
3. **Share it**Anyone with the link sees exactly what you saw, including the resolver and timestamp.
4. **Manage or remove it**Save while signed in (or with a dns:create key) to keep a snapshot indefinitely, then list and delete your snapshots from the account page, the REST list/delete endpoints, or the MCP list_snapshots/delete_snapshot tools.

Examples

## Copyable commands

REST — create (anonymous)

```
curl -X POST 'https://dnsbin.ca/api/v1/snapshots' \
  -H 'Content-Type: application/json' \
  --data '{"name":"example.com","type":"A","kind":"lookup","result":{}}'
```

REST — read

```
curl 'https://dnsbin.ca/api/v1/snapshots/abc123'
```

REST — list your snapshots

```
curl -H "Authorization: Bearer $DNSBIN_KEY" \
  'https://dnsbin.ca/api/v1/snapshots'
```

REST — delete one you own

```
curl -X DELETE -H "Authorization: Bearer $DNSBIN_KEY" \
  'https://dnsbin.ca/api/v1/snapshots/abc123'
```

Operational notes

## Keep in mind

- Snapshots are public, read-only pages — don’t capture anything you wouldn’t share.
- Creation is public and rate-limited — the browser button works without an account. Sending a dns:create API key attributes the snapshot to your account; reading is always public.
- Retention: anonymous snapshots are deleted after 30 days. Snapshots saved to an account persist until you delete them. Listing needs dns:read; deleting needs dns:delete.


---

---
title: "Automate with the API and MCP — dnsbin.ca docs"
source: "https://dnsbin.ca/docs/workflows/automate-with-api"
---
[dnsbin.ca](/)›[Docs](/docs)›Workflow

Scripts, CI, and agents

# Automate with the API and MCP

Drive every dnsbin tool from a script, a CI pipeline, or an AI agent using the JSON REST API or the MCP server.

When to use it

## Use this when

- You want DNS checks in a CI pipeline, a cron monitor, or a deploy gate.
- You are wiring dnsbin into an AI agent or an MCP-capable client.

Steps

## Do this

1. **Read the contract**Start from the OpenAPI 3.1 document — every endpoint, parameter, and response shape is described there.
2. **Call read endpoints**All read tools (lookup, propagation, dnssec, mail, rdap, reverse, trace, dnsbl, …) are public and need no auth.
3. **Authenticate when needed**Read and snapshot endpoints work anonymously; mint an API key on the authority site to attribute snapshots to an account, or point an MCP client at /mcp for OAuth-secured tools.

Examples

## Copyable commands

REST — OpenAPI

```
curl 'https://dnsbin.ca/api/v1/openapi.json'
```

REST — anonymous read

```
curl 'https://dnsbin.ca/api/v1/lookup?name=example.com&type=A'
```

MCP — list tools

```
curl -i 'https://dnsbin.ca/mcp' \
  -H 'Authorization: Bearer pbca_live_…' \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

Operational notes

## Keep in mind

- Read and snapshot endpoints are public (rate-limited); a dns:create key is optional and only attributes snapshots to an account, while MCP tokens are audience-bound to /mcp.
- Agents can also discover the service via /llms.txt and /.well-known/agent.json.

