← Back to marketplace

DNS Lookup

Resolve A, AAAA, MX, TXT, NS, CNAME, SOA, CAA and PTR records for a domain as clean JSON.

infra
by glowhalo1 endpoint100% uptime41ms avg

Endpoints

GET/v1/lookup
$0.0010/req

Look up DNS records of a given type for a domain and return them as JSON.

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/dns-lookup/v1/lookup?domain=example.com&type=MX"

Or call the proxy directly (curl / any HTTP client):

curl https://proxy.apihub.io/dns-lookup/v1/lookup?domain=example.com&type=MX \
  -H "Authorization: Bearer ahk_your_key"

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for DNS Lookup.

GET /v1/lookup$0.0010/req
-