Docs › Network and contact checks
DNS check API
A domain's DNS records at four public resolvers at once.
Asks Cloudflare, Google, Quad9 and OpenDNS for the same record and says whether they agree: useful when a change is still spreading. Counts as 10 requests against the rate limit.
Look up DNS records
GET/v1/dns/{name}
| Parameter | Description |
|---|---|
namepath, required | Domain name (Indian-script names are accepted), or an IP address for PTR. |
typequery | Record type. Default A. One of: A, AAAA, CNAME, MX, NS, TXT, CAA, SOA, SRV, PTR. |
curl
curl "https://api.dharun.dev/v1/dns/dharun.dev?type=MX"JavaScript
const response = await fetch("https://api.dharun.dev/v1/dns/dharun.dev?type=MX");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);Python
import requests
response = requests.get("https://api.dharun.dev/v1/dns/dharun.dev?type=MX", timeout=10)
body = response.json()
if not response.ok:
raise RuntimeError(body["error"]["message"])
print(body["data"])Using an AI assistant? Connect the MCP server and it can call this API by itself.