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.
Base pattern
GET https://dnslab.io/api/lookup/{tool}/{query}
Accept: application/jsonResponse 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
DNS
| MX Lookup | /api/lookup/mx/example.com |
| A Lookup | /api/lookup/a/example.com |
| AAAA Lookup | /api/lookup/aaaa/example.com |
| CNAME Lookup | /api/lookup/cname/www.example.com |
| DNS Lookup | /api/lookup/ns/example.com |
| TXT Lookup | /api/lookup/txt/example.com |
| SOA Lookup | /api/lookup/soa/example.com |
| SRV Lookup | /api/lookup/srv/_sip._tcp.example.com |
| CAA Lookup | /api/lookup/caa/example.com |
| Reverse Lookup (PTR) | /api/lookup/ptr/1.1.1.1 |
| NAPTR Lookup | /api/lookup/naptr/example.com |
| TLSA Lookup | /api/lookup/tlsa/_443._tcp.example.com |
DNSSEC
| DNSKEY Lookup | /api/lookup/dnskey/cloudflare.com |
| DS Lookup | /api/lookup/ds/cloudflare.com |
| RRSIG Lookup | /api/lookup/rrsig/cloudflare.com |
| NSEC Lookup | /api/lookup/nsec/example.com |
| NSEC3PARAM Lookup | /api/lookup/nsec3param/example.com |
| CERT Lookup | /api/lookup/cert/example.com |
| LOC Lookup | /api/lookup/loc/example.com |
| IPSECKEY Lookup | /api/lookup/ipseckey/example.com |
| SPF Lookup | /api/lookup/spf/example.com |
| DKIM Lookup | /api/lookup/dkim/example.com |
| DMARC Lookup | /api/lookup/dmarc/example.com |
| BIMI Lookup | /api/lookup/bimi/example.com |
| MTA-STS Lookup | /api/lookup/mta-sts/example.com |
| TLS-RPT Lookup | /api/lookup/tlsrpt/example.com |
| SMTP Test | /api/lookup/smtp/mail.example.com |
| Domain Health | /api/lookup/domain-health/example.com |
| Google / Yahoo Compliance | /api/lookup/email-compliance/example.com |
| Microsoft Compliance | /api/lookup/microsoft-compliance/example.com |
Reputation
| Blacklist Check | /api/lookup/blacklist/1.2.3.4 |
| Blocklist Check | /api/lookup/blocklist/1.2.3.4 |
Network
| What Is My IP | /api/lookup/whatismyip |
| WHOIS Lookup | /api/lookup/whois/example.com |
| ASN Lookup | /api/lookup/asn/AS13335 |
| ARIN / IP Blocks | /api/lookup/arin/8.8.8.8 |
| Ping | /api/lookup/ping/example.com |
| Traceroute | /api/lookup/trace/example.com |
| TCP Port Check | /api/lookup/tcp/example.com |
| HTTP Lookup | /api/lookup/http/example.com |
| HTTPS Lookup | /api/lookup/https/example.com |
SSL/TLS
| SSL Checker | /api/lookup/ssl/example.com |
| OCSP Checker | /api/lookup/ocsp/example.com |
| CT Log Search | /api/lookup/ct-logs/example.com |
| SSL Handshake Trace | /api/lookup/ssl-trace/example.com |
Utilities
| DNS Propagation | /api/lookup/dns-propagation/example.com |
| LLMs.txt Lookup | /api/lookup/llmstxt/example.com |
| Robots.txt AI Policy | /api/lookup/robotsai/example.com |
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/mcpAdd 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):