DNS Lookup
OperationalQuery any DNS record type and perform reverse lookups
API Overview
The DNS Lookup API provides programmatic access to DNS resolution from Cloudflare's global edge network. Query any record type for any domain and receive structured, parsed responses rather than raw wire format. Supports A, AAAA, MX, TXT, CNAME, NS, SOA, SRV, and PTR records. Reverse lookups accept an IPv4 or IPv6 address and return all associated hostnames. Useful for infrastructure monitoring, security tooling, and any workflow that needs reliable DNS data.
All Record Types
Query A, AAAA, MX, TXT, CNAME, NS, SOA, SRV, and PTR records with a single parameter.
Reverse DNS Lookup
Submit an IPv4 or IPv6 address to resolve all associated hostnames via PTR records.
Parsed Structured Output
Responses are parsed into clean JSON — no raw wire format or binary decoding needed.
Cloudflare Edge Resolution
DNS queries resolve from Cloudflare's global anycast network for minimal latency worldwide.
terminal API Playground
Live Simulationimport requests
url = "https://api.picopayd.codefission.co.uk/web/api/lookup"
headers = {
"X-PAYMENT": "<402-payment-token>"
}
params = {
"domain": "example.com",
"type": "MX"
}
response = requests.get(url, params=params, headers=headers)
print(response.json()) {
"domain": "example.com",
"type": "MX",
"records": [
{
"priority": 10,
"exchange": "mail.example.com",
"ttl": 3600
}
],
"resolvedAt": "2026-03-09T12:00:00Z"
}