Wood Between StudioAPIs & Actors

Home / APIs / ZonePeek

ZonePeek DNS Lookup

Look up A, AAAA, MX, TXT, NS, CNAME, SOA, PTR, SRV and CAA records over DNS-over-HTTPS. Reverse DNS for any IP.

This API is live on our Worker and is being listed on RapidAPI. The host below is the expected RapidAPI hostname once the listing is public. Until then the examples will work after you subscribe.

Open on RapidAPI

Endpoints

PathWhat it does
/lookupLook up one domain (type=ALL for common records)
/reverseReverse DNS (PTR) for an IPv4 or IPv6 address
/bulkLook up up to 15 domains
/typesSupported record types

Examples

Replace YOUR_KEY with your RapidAPI key. Host: zonepeek-dns-lookup.p.rapidapi.com

curl

curl --request GET \
  --url 'https://zonepeek-dns-lookup.p.rapidapi.com/lookup?name=gmail.com&type=MX' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: zonepeek-dns-lookup.p.rapidapi.com'

JavaScript

const res = await fetch('https://zonepeek-dns-lookup.p.rapidapi.com/lookup?name=gmail.com&type=MX', {
  headers: {
    'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
    'X-RapidAPI-Host': 'zonepeek-dns-lookup.p.rapidapi.com'
  }
});
const data = await res.json();

Python

import os, requests
r = requests.get(
    'https://zonepeek-dns-lookup.p.rapidapi.com/lookup?name=gmail.com&type=MX',
    headers={
        'X-RapidAPI-Key': os.environ['RAPIDAPI_KEY'],
        'X-RapidAPI-Host': 'zonepeek-dns-lookup.p.rapidapi.com',
    },
)
print(r.json())

Notes

Nothing you send is stored by our code. Calls go through RapidAPI, which bills according to the plan you pick. The origin runs on Cloudflare Workers.