# Bulk Domain DNS Lookup - MX, SPF, DMARC Records (`darikami/domain-dns-checker`) Actor

Look up the public DNS records of a domain list in bulk. Each domain gets its A, AAAA, MX, NS, TXT and CNAME records, with the SPF and DMARC policies parsed. Public DNS only: no WHOIS or registration data. USD 1 per 1,000 domains.

- **URL**: https://apify.com/darikami/domain-dns-checker.md
- **Developed by:** [DARIKAMI GmbH](https://apify.com/darikami) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 domain checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bulk Domain DNS Lookup - MX, SPF, DMARC Records

**See the DNS and mail records of a domain list in one run.** Each domain gets its A, AAAA, MX, NS, TXT and CNAME records, with the SPF and DMARC policies parsed.
The main fields are `status`, `a`, `aaaa`, `mx`, `ns`, `txt`, `cname`, `spf` and `dmarc`. It asks DNS only. It does not read WHOIS or registration data.
**USD 0.001 per domain (USD 1 per 1,000).** A domain that does not exist is a row too and is charged. Free: the note that maxResults stopped a run, an `incomplete` row, and a text that is no domain name.
Input: a list of domain names, for example `{"domains": ["github.com", "wikipedia.org", "example.com"]}`.

| Domain | Status | MX | SPF all | DMARC policy |
|---|---|---|---|---|
| github.com | found | github-com.mail.protection.outlook.com | ~all | quarantine |
| wikipedia.org | found | mx-in1001.wikimedia.org | ~all | reject |
| example.com | found | (null MX: takes no mail) | -all | reject |
| this-domain-does-not-exist-meniti.invalid | not-found | - | - | - |
| not a domain | invalid | - | - | - |

The rows come from a real cloud run of 2026-11-08. The full item is under Output.

### Who uses it

- **Mail setup checks:** see for a list of domains which have MX records, an SPF policy and a DMARC policy.
- **Domain lists:** find the names that no longer resolve, and the name servers of the rest.
- **Security and IT audits:** list the `p=none` DMARC policies and the SPF records that end in `+all` or have no `all`.

### What it does not do

- It reads DNS only. It gives no owner, registrar, creation date or expiry date: that is WHOIS or RDAP data, and this actor does not read it.
- It asks the default resolver of the actor's machine. A record that you see from another place or another resolver can differ.
- It reads the records at the name you give. It does not try subdomains or the DKIM selectors,
- SPF and DMARC are parsed from their text. The actor does not check that the policies work: it does not resolve the `include:` chain and does not count SPF lookups.
- `incomplete` means a lookup failed (timeout or server error), and `failedLookups` names it. Run the domain again later.
- A record list is cut at 50 records and a TXT value at 1,000 characters; `truncated` says so.

### Input

```json
{
  "domains": ["github.com", "wikipedia.org"],
  "maxResults": 5000
}
```

| Field | What it does |
|---|---|
| `domains` | The domains to check, without `http://` or a path. Duplicates and empty entries are skipped. Up to 50,000. |
| `maxResults` | The run checks at most this many domains. Default 5,000. |

### Output

One item per domain:

```json
{
  "domain": "wikipedia.org",
  "input": "wikipedia.org",
  "status": "found",
  "error": null,
  "a": ["208.80.154.224"],
  "aaaa": ["2620:0:861:ed1a::1"],
  "mx": [{ "priority": 10, "exchange": "mx-in1001.wikimedia.org" }],
  "ns": ["ns0.wikimedia.org", "ns1.wikimedia.org", "ns2.wikimedia.org"],
  "txt": ["google-site-verification=AMHkgs-4ViEvIJf5znZle-BSE2EPNFqM1nDJGRyn2qk", "yandex-verification: 35c08d23099dc863", "v=spf1 include:_cidrs.wikimedia.org ~all"],
  "cname": [],
  "spf": { "record": "v=spf1 include:_cidrs.wikimedia.org ~all", "all": "~all" },
  "spfRecordCount": 1,
  "dmarc": { "record": "v=DMARC1; p=reject; rua=mailto:dmarc-rua@wikimedia.org;", "policy": "reject", "subdomainPolicy": null, "pct": null, "hasReportAddress": true },
  "failedLookups": [],
  "truncated": false,
  "source": "public DNS (A, AAAA, MX, NS, TXT, CNAME; SPF and DMARC read from TXT)"
}
```

- `status`: `found` (at least one record), `no-records` (the name exists and has none of the six types), `not-found` (the name does not exist), `incomplete` or `invalid` (the text is no domain name; `error` says why).
- `spf.all` is the closing term of the first SPF record. `spfRecordCount` above 1 is a fault in the domain's DNS.
- `dmarc` is read at `_dmarc.<domain>`. `pct` is `null` when the record has no `pct` tag.
- An MX with an empty `exchange` is a null MX (RFC 7505): the domain says it takes no mail.
- Names are lower case, without the final dot. Names with non-ASCII letters come back in punycode.

### Pricing (pay per event)

| Event | Price | When |
|---|---|---|
| `row` | **USD 0.001** | one domain checked and pushed to the dataset |

Free: the note that maxResults stopped the run, an `incomplete` row (a DNS lookup failed), an `invalid` input (the text is no domain name), and the domains left untried after DNS failed for 25 domains in a row.
1,000 domains cost USD 1.
You pay no more than the maximum charge that you set for a run.

### Data source and terms

- **Source:** public DNS, read with Node's `dns/promises`. Each lookup has a timeout of about 10 seconds per DNS server. A domain takes 7 lookups.
- The actor reads records that any resolver gives out. It does not read WHOIS or RDAP, it does not scan ports and it does not crawl websites.
- Domain names can name a person. You are responsible for having a lawful basis for the domains that you send.
- The actor is provided without warranty.

**More official-data actors by darikami:** [European company registers](https://apify.com/darikami/european-company-registers) · [SEC company fundamentals](https://apify.com/darikami/sec-company-fundamentals) · [Swiss UID validator](https://apify.com/darikami/swiss-uid-validator) · [French company search](https://apify.com/darikami/french-company-search).
In an AI agent: ask the Apify MCP server (`mcp.apify.com`) for `darikami/domain-dns-checker`.

# Actor input Schema

## `domains` (type: `array`):

The domain names to check, one per entry, without http:// or a path (example.com). Up to 50,000.

## `maxResults` (type: `integer`):

The run checks at most this many domains.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "github.com",
    "this-domain-does-not-exist-meniti.invalid"
  ],
  "maxResults": 5000
}
```

# Actor output Schema

## `results` (type: `string`):

One item per domain: status, the records, SPF and DMARC.

## `summary` (type: `string`):

SUMMARY record: pushed, charged, attempts, errors, stoppedByBudget, ok, message.

## `stats` (type: `string`):

STATS record: domains, checked, found, noRecords, notFound, incomplete, invalid, notTried, emitted, charged.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "example.com",
        "github.com",
        "this-domain-does-not-exist-meniti.invalid"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("darikami/domain-dns-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": [
        "example.com",
        "github.com",
        "this-domain-does-not-exist-meniti.invalid",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("darikami/domain-dns-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "example.com",
    "github.com",
    "this-domain-does-not-exist-meniti.invalid"
  ]
}' |
apify call darikami/domain-dns-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,darikami/domain-dns-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OYeThtJeZXTKJZysU/builds/X8CaDqh4Woz8fMmcc/openapi.json
