APImcp
GuidesGeo & Network
ConsoleDocsMCP
Geo & Network ⏱ 1 min read

DNS Lookup API — Query DNS Records for Any Domain in Real-Time

Look up DNS records (A, AAAA, MX, CNAME, TXT, NS, SOA) for any domain. Supports all standard record types. Free API.

01

What is DNS Lookup?

DNS lookup queries the Domain Name System to retrieve records for a domain. The API supports A (IPv4), AAAA (IPv6), MX (mail exchange), CNAME (canonical name), TXT (text records including SPF and DKIM), NS (nameservers), and SOA (start of authority) record types.

02

How to Use It

Call GET /api/v1/dns-lookup?name=example.com&type=A. Returns { domain: string, type: string, records: Array<{ name: string, type: string, ttl: number, data: string }>, response_time_ms: number }.

Try it live Test this endpoint in the interactive console
Open Console →

Frequently Asked Questions

What DNS record types are supported?
A, AAAA, MX, CNAME, TXT (including SPF and DKIM), NS, and SOA.