DNS Records Lookup avatar

DNS Records Lookup

Pricing

from $0.40 / 1,000 domain looked ups

Go to Apify Store
DNS Records Lookup

DNS Records Lookup

Look up DNS records for a list of domains in bulk: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, with SPF and DMARC policies explained and the mail and DNS provider named. No API key needed.

Pricing

from $0.40 / 1,000 domain looked ups

Rating

0.0

(0)

Developer

jake mcclure

jake mcclure

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Look up the DNS records of a list of domains in bulk: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA. For each domain you also get its SPF and DMARC email policies explained, and the company that runs its mail and its DNS.

It asks a public DNS service the same questions any computer asks when it visits a site. No login and no API key are needed.

Use it to:

  • see which email provider and DNS host each company in a list uses
  • audit SPF and DMARC across all the domains you manage
  • check a migration: are the new records live for every domain?
  • find domains that no longer exist in a list of leads or links
  • monitor records for unexpected changes by running it on a schedule

Input

FieldWhat it does
DomainsOne per line: example.com. A web address or an email address also works; its domain is used.
Record typesWhich records to look up. Leave empty for all eight.
Check SPF and DMARCAlso read and explain the domain's email policies. On by default.
{
"domains": ["apify.com", "github.com", "https://www.wikipedia.org/"],
"recordTypes": ["A", "MX", "NS", "TXT"],
"includeEmailSecurity": true
}

Output

One record per domain:

{
"input": "github.com",
"domain": "github.com",
"status": "ok",
"a": ["140.82.121.4"],
"aaaa": [],
"cname": null,
"mx": [
{ "priority": 1, "host": "aspmx.l.google.com" },
{ "priority": 5, "host": "alt1.aspmx.l.google.com" }
],
"ns": ["dns1.p08.nsone.net", "ns-1283.awsdns-32.org"],
"txt": ["v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com ~all", "MS=ms44452932"],
"soa": {
"primaryNameServer": "dns1.p08.nsone.net",
"adminEmail": "hostmaster@nsone.net",
"serial": 1656468023,
"refreshSeconds": 43200,
"retrySeconds": 7200,
"expireSeconds": 1209600,
"minimumTtlSeconds": 3600
},
"caa": [{ "critical": false, "tag": "issue", "value": "letsencrypt.org" }],
"spf": {
"record": "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com ~all",
"includes": ["_netblocks.google.com"],
"all": "~all"
},
"dmarc": {
"record": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:dmarc@github.com",
"policy": "quarantine",
"subdomainPolicy": "reject",
"percent": 100,
"reportTo": ["dmarc@github.com"]
},
"mailProvider": "Google",
"dnsProvider": "NS1",
"failedTypes": [],
"scrapedAt": "2026-11-12T19:00:00.000Z"
}
  • status is ok, not_found (the domain does not exist) or dns_error (the domain's own DNS is broken).
  • A record type you did not ask for is null. One you asked for that has no records is an empty list.
  • spf.all is how the policy ends: -all (reject other senders), ~all (mark them as suspicious), ?all (no opinion) or +all (allow anyone). spf and dmarc are null when the domain has no such policy.
  • mailProvider and dnsProvider are named when the mail servers or name servers belong to a well-known company, otherwise null.
  • failedTypes lists any record type whose lookup failed while the others worked.

A SUMMARY record in the run's key-value store lists how many domains were saved and any that could not be looked up.

Pricing

Pay per result. You are charged once for each domain saved to the dataset, at the per-result price shown on this page, however many record types you ask for.

A domain is not charged for when the DNS service could not be reached for it; those are listed in the log and the summary so you can run them again. Lines that are not domain names cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

Limits

  • Answers come from a public DNS resolver (Cloudflare's), which caches records for as long as each record allows. A change made minutes ago may not show yet.
  • A site behind a content delivery network returns that network's addresses, and they can differ by region.
  • The Actor reads records by name. It cannot list a domain's subdomains, and it does not do reverse lookups from an IP address.
  • SPF is reported as written. Records referred to by include: are listed but not followed.

Is this allowed?

DNS records are public by design: every domain publishes them so that browsers and mail servers can find it. The Actor asks a public resolver ordinary questions at a modest rate.