DNS Records Lookup API — A, MX, TXT, NS by Domain avatar

DNS Records Lookup API — A, MX, TXT, NS by Domain

Pricing

from $2.00 / 1,000 results

Go to Apify Store
DNS Records Lookup API — A, MX, TXT, NS by Domain

DNS Records Lookup API — A, MX, TXT, NS by Domain

Returns DNS records as structured JSON for any list of domains: A, AAAA, MX, NS, TXT, CNAME and SOA. Bulk lookups in one run, no API key. Input: domains. Use for email setup checks, domain audits and lead enrichment.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Technical Dost Solutions

Technical Dost Solutions

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

18 days ago

Last modified

Security

Limited permissions

Share

DNS Records Lookup API Resolve any domain's DNS into structured JSON — A, AAAA, MX, NS, TXT, CNAME and SOA records — in one bulk call. No API key. Built for developers who need fast, reliable, bulk results without managing servers or proxies.

Features

  • One structured JSON record per domain.
  • Bulk + concurrent — process up to 100 domains per run.
  • No proxy, no browser, no API key — fast and low-cost.
  • Graceful failures: unreachable inputs return ok: false with an error; the run never crashes.

Input

{"domains": ["github.com", "cloudflare.com"], "maxItems": 100}

Output

One record per domain:

{
"domain": "github.com",
"ok": true,
"A": ["140.82.112.3"],
"AAAA": [],
"MX": [{"exchange": "aspmx.l.google.com", "priority": 1}],
"NS": ["dns1.p08.nsone.net"],
"TXT": ["v=spf1 ..."],
"CNAME": [],
"SOA": {"nsname": "...", "serial": 1}
}

Who it's for

  • DevOps & SRE teams auditing DNS
  • Security researchers mapping infrastructure
  • Email/deliverability tooling reading MX & SPF (TXT)
  • Monitoring services tracking record changes

How to use

  1. Add your domains to the domains input field.
  2. Run the Actor and read one structured record per input from the dataset.
  3. Export as JSON, CSV, or Excel, or call the Actor's API from your backend.

FAQ

Do I need an API key? No. You provide domains; the Actor does the rest. Does it return personal data? No — only public infrastructure/metadata, never personal contact data. What formats can I export? JSON, CSV, and Excel via the dataset, or the Actor API.

Pricing

Pay-per-event: a tiny per-run start fee plus a small per-result charge. You pay only for successful results. See the Pricing tab.

Further reading

  • Keyword: DNS records lookup.

Use DNS Records Lookup API with AI agents (MCP)

Give Claude, ChatGPT, Cursor, VS Code or any MCP client this Actor as a tool through the hosted Apify MCP server. The agent sees the input fields with descriptions and example values, runs the Actor, and reads the results.

MCP server URL (this Actor only):

https://mcp.apify.com/?tools=technicaldost/dns-records-lookup

Claude Code:

$claude mcp add --transport http apify "https://mcp.apify.com/?tools=technicaldost/dns-records-lookup" --header "Authorization: Bearer YOUR_APIFY_TOKEN"

Cursor, VS Code, Claude Desktop and other clients (mcp.json or the client's MCP settings):

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?tools=technicaldost/dns-records-lookup",
"headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
}
}
}

Clients that support sign-in (such as Claude.ai connectors) can use the URL without a token and log in to Apify instead. Get your token in Apify Console → Settings → API & Integrations, or generate a ready config for your client at mcp.apify.com. In the agent the tool is named technicaldost--dns-records-lookup; ask it, for example, to "run DNS Records Lookup API with {"domains": ["github.com", "cloudflare.com"]}".

AI agents without an Apify account can also run and pay for this Actor per request with x402 agentic payments.

Run DNS Records Lookup API via API

Run the Actor and get its results in one call (replace YOUR_APIFY_TOKEN):

curl -X POST "https://api.apify.com/v2/acts/technicaldost~dns-records-lookup/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"domains": ["github.com", "cloudflare.com"]}'

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("technicaldost/dns-records-lookup").call(run_input={"domains": ["github.com", "cloudflare.com"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript / TypeScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('technicaldost/dns-records-lookup').call({"domains": ["github.com", "cloudflare.com"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Long runs: start them with POST /v2/acts/technicaldost~dns-records-lookup/runs and fetch the dataset when the run finishes, or receive a webhook.

Integrations

DNS Records Lookup API works with Make, Zapier, n8n, LangChain, Google Sheets, Slack, GitHub and webhooks. Schedule runs in Apify Console and send new results straight to your apps, spreadsheets or AI pipelines.