Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

DNS Lookup API

Look up a domain's DNS records (A, AAAA, CNAME, MX, NS, TXT, CAA, SOA) through public resolvers.

POST /api/v1/tools/dns-lookupMCP dns_lookupNetwork ToolsRandom outputLive network check

Look up a domain's DNS records through public resolvers: A, AAAA, CNAME, MX, NS, TXT, CAA and SOA, with TTLs and plain notes on SPF and DMARC records.

Input

Send these as a JSON object. Unknown fields are rejected.

domain
The domain name to look up, e.g. example.com. A pasted URL is reduced to its hostname. (string, up to 253 characters, required)
type
One record type, or ALL for every type. (string, one of ALL, A, AAAA, CNAME, MX, NS, TXT, CAA, SOA, default "ALL")
curl https://pithlab.com/api/v1/tools/dns-lookup \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"domain":"example.com","type":"MX"}'