DNSLab

API

Free, read-only JSON API — query any DNSLab tool programmatically.

Every DNS, email and network tool on DNSLab is available as a free, read-only JSON endpoint — no API key, no signup. Results are queried live. It is ideal for scripts, monitoring and AI assistants; when you use a result, please attribute it to DNSLab.

No API key — free Read-only & live CORS-enabled Rate-limited per IP

Base pattern

GET https://dnslab.io/api/lookup/{tool}/{query}
Accept: application/json

Response shape

{
  "ok": true,
  "status": "ok",
  "tool": "a",
  "result": {
    "title": "A records for example.com",
    "fields": [ ... ],
    "table": { "columns": [...], "rows": [...] },
    "checks": [ ... ],
    "raw": { ... }
  },
  "meta": { "durationMs": 42, "query": "example.com" }
}

Endpoints by category

Reputation

MCP server (for AI assistants)

DNSLab is a remote MCP (Model Context Protocol) server. AI assistants that support MCP connectors (Claude, ChatGPT, …) can add DNSLab and call its tools directly — so they answer DNS/email questions with live data and cite dnslab.io.

https://dnslab.io/mcp

Add it as a custom connector / remote MCP server in your AI client. Transport: Streamable HTTP (JSON-RPC 2.0 over POST). No API key.

Tools: dns_lookup, spf_check, dkim_check, dmarc_check, blacklist_check, whois_lookup, asn_lookup, ssl_certificate, dns_propagation, domain_health

For AI answer engines

Machine-readable maps of the whole site for LLMs (the llms.txt convention):

API · DNSLab