Bulk DNS Records Lookup (MX, TXT, SPF, DMARC) avatar

Bulk DNS Records Lookup (MX, TXT, SPF, DMARC)

Pricing

from $0.35 / 1,000 domain results

Go to Apify Store
Bulk DNS Records Lookup (MX, TXT, SPF, DMARC)

Bulk DNS Records Lookup (MX, TXT, SPF, DMARC)

Look up A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records for thousands of domains, with an email-security check per domain: SPF, DMARC policy and common misconfigurations. Uses public DNS resolvers.

Pricing

from $0.35 / 1,000 domain results

Rating

0.0

(0)

Developer

Fleet

Fleet

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Paste a list of domains (or URLs, or e-mail addresses) and get their DNS records in clean JSON: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA by default, SRV and PTR on request. For each domain it also checks email security: the SPF record and its all mechanism, the DMARC policy, and common mistakes (no SPF, two SPF records, +all, no DMARC, p=none).

Lookups go to a public resolver (Cloudflare 1.1.1.1 by default; Google or Quad9 on request), run 20 at a time, and finish thousands of domains in minutes.

Use it for

  • Email deliverability and security audits: which of your (or your clients') domains lack SPF or DMARC, or still have p=none.
  • Domain portfolio checks: where each domain points (A/AAAA/CNAME), which DNS provider hosts it (NS), who handles its mail (MX), and which certificate authorities may issue for it (CAA).
  • Migrations: confirm records changed everywhere after moving DNS or mail providers.
  • Lead and market research: see which email or hosting provider a list of company domains uses (from public MX and NS records).
  • AI agents: a quick DNS tool through Apify's MCP server.

Input

FieldWhat it does
Domains (required)One per line, up to 100,000. URLs and e-mail addresses work too (the domain part is used).
Record typesDefault A, AAAA, CNAME, MX, NS, TXT, SOA, CAA. Also SRV, PTR.
Check email securityDefault on: also reads _dmarc.<domain> and summarizes SPF/DMARC.
DNS resolverCloudflare (default), Google, Quad9, or Apify's server default.
Return only existing domainsSkip names that do not exist (NXDOMAIN); they are not charged.
Parallel lookupsDefault 20.

Output

One item per domain. A real example from a run on 2026-11-17 with the Actor's default input (default domains: github.com, python.org, gov.uk; long lists cut to three entries):

{
"domain": "python.org",
"exists": true,
"records": {
"A": [
"151.101.192.223",
"151.101.64.223",
"151.101.128.223",
"151.101.0.223"
],
"AAAA": [
"2a04:4e42:600::223",
"2a04:4e42:200::223",
"2a04:4e42:400::223",
"2a04:4e42::223"
],
"CNAME": [],
"MX": [
{
"priority": 50,
"exchange": "mail.python.org"
}
],
"NS": [
"ns-1134.awsdns-13.org",
"ns-2046.awsdns-63.co.uk",
"ns-484.awsdns-60.com",
"ns-981.awsdns-58.net"
],
"TXT": [
"888acb5757da46ad83b7e341ec544c64",
"MS=73147F1EC0843C399CF17F586EC6B8EAF8C57961",
"_globalsign-domain-verification=B57sRQpmte4G4w-gavZbVNmmNsMxGp5kcL19UP2599"
],
"SOA": [
{
"primaryNameServer": "ns-2046.awsdns-63.co.uk",
"serial": 1,
"refresh": 7200,
"retry": 900,
"expire": 1209600,
"minimumTtl": 86400
}
],
"CAA": []
},
"errors": [],
"isAlias": false,
"email": {
"hasMx": true,
"nullMx": false,
"spf": "v=spf1 mx ip4:188.166.95.178/32 ip6:2a03:b0c0:2:d0::71:1 include:stspg-customer.com include:_spf.google.com include:mailgun.org ~all",
"spfAll": "~all",
"dmarc": "v=DMARC1; p=none; pct=100; rua=mailto:re+shb8ybr70a3@dmarc.postmarkapp.com; sp=none; aspf=r;",
"dmarcPolicy": "none",
"dmarcSubdomainPolicy": "none",
"dmarcPct": 100,
"issues": [
"DMARC policy is p=none (monitoring only, no enforcement)"
]
},
"lookupMs": 28,
"resolver": "cloudflare",
"checkedAt": "2026-11-18T02:03:35.279Z"
}

exists: false means the name does not exist in DNS (NXDOMAIN). isAlias: true means the name is a CNAME; the email check is then skipped, because an alias has no records of its own. errors lists record types the resolver could not answer (e.g. SERVFAIL), so you can tell "no record" from "lookup failed". nullMx: true means the domain explicitly declares it receives no email (RFC 7505).

Pricing

Pay per result: $0.0005 per domain returned ($0.50 per 1,000 domains), with lower prices on Apify's Bronze, Silver and Gold plans, plus Apify's small run-start fee. Invalid lines and duplicates are not charged; with "Return only existing domains", non-existent names are not charged either. You can set a maximum cost per run; the Actor stops cleanly when it is reached.

Limits and honest notes

  • Answers come from the chosen public resolver and may be cached for up to the record's TTL; a change you just made may take a while to show.
  • This is DNS only. It does not check whether a domain is available to register, and it does not use WHOIS/RDAP.
  • The SPF lookup-count check is an estimate from the record text; it does not expand include: chains.
  • DKIM is not checked, because DKIM selectors are not discoverable from DNS without knowing them.
  • DNS records are public. The SOA record's contact mailbox is not included.

Use it from the API, a schedule or an AI agent

API. Look up domains and get the records in one call (replace YOUR_APIFY_TOKEN):

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

Schedules and integrations. Save a task with your domain list and schedule it weekly to catch DNS or email-security changes; send results to Google Sheets, Slack, Make, Zapier or n8n.

AI agents (MCP). Add the Actor as a tool in any MCP client (Claude, Cursor and others) through Apify's hosted MCP server:

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

Set a maximum cost per run in the call options to cap spending.

FAQ

Can I check if a domain is available to buy? Not reliably: a registered domain can have no DNS records. Use a registrar for availability. exists: false only tells you the name has no DNS.

Why do results differ from my computer? Resolvers cache records; your computer may use your ISP's or company's resolver, which can return different or filtered answers.

Does it check DKIM? No, see the limits above.

What does a typical run cost? At $0.0005 per domain, 1,000 domains cost about $0.50.

Questions and problems

Open an issue on the Actor's Issues tab with the run link.