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.

Base URL https://api.dharun.devNo key needed for most600 units a minute, 3000 with a free keyThis page as Markdown

Look up DNS records

GET/v1/dns/{name}

ParameterDescription
namepath, requiredDomain name (Indian-script names are accepted), or an IP address for PTR.
typequeryRecord 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&utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/dns/dharun.dev?type=MX&utm_medium=docs");
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&utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
    raise RuntimeError(body["error"]["message"])
print(body["data"])
Try it here

Change the values and send the request from your browser. Needs JavaScript.

Using an AI assistant? Connect the MCP server and it can call this API by itself. Want every endpoint on one bench? Open the playground.