# Domain WHOIS & DNS Checker – Expiry, MX, DMARC (`publicrows/domain-dns-whois`) Actor

Bulk domain lookup: registrar, creation and expiry dates, status and nameservers from RDAP (the official WHOIS successor), plus A and MX records, SPF, DMARC policy and verification records from DNS. Clean rows for any domain list. $2 per 1,000 domains, first 20 free.

- **URL**: https://apify.com/publicrows/domain-dns-whois.md
- **Developed by:** [PublicRows](https://apify.com/publicrows) (community)
- **Categories:** Developer tools, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 domains checked

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## Domain WHOIS & DNS Checker – Expiry, MX, DMARC

Bulk domain lookup: registrar, creation and expiry dates, status and nameservers from RDAP (the official WHOIS successor), plus A and MX records, SPF, DMARC policy and verification records from DNS. Clean rows for any domain list. $2 per 1,000 domains, first 20 free.

### Who this is for

IT and security teams auditing domains and e-mail authentication, marketers checking whether prospects' domains can receive mail before a campaign, domain investors watching expiry dates, and agents that need a quick does-this-domain-exist answer: a domain list in, one row each out.

### Sample output

```json
{
  "domain": "...",
  "dns_status": "...",
  "a_records": "...",
  "row_key": "...",
  "source_url": "...",
  "registrar": "...",
  "registrar_iana_id": "...",
  "created_at": "..."
}
```

### What you get

One row per domain. Every row also carries `_source` (attribution) and the recipe version.

| Field | Type |
| --- | --- |
| `domain` | string, always present |
| `dns_status` | string, always present |
| `a_records` | string |
| `row_key` | string, always present |
| `source_url` | url |
| `registrar` | string (joined from a companion supplier request; null if that request fails) |
| `registrar_iana_id` | string (joined from a companion supplier request; null if that request fails) |
| `created_at` | datetime (joined from a companion supplier request; null if that request fails) |
| `expires_at` | datetime (joined from a companion supplier request; null if that request fails) |
| `updated_at` | datetime (joined from a companion supplier request; null if that request fails) |
| `domain_status` | string (joined from a companion supplier request; null if that request fails) |
| `nameservers` | string (joined from a companion supplier request; null if that request fails) |
| `dnssec_signed` | boolean (joined from a companion supplier request; null if that request fails) |
| `mx_records` | string (joined from a companion supplier request; null if that request fails) |
| `spf_record` | string (joined from a companion supplier request; null if that request fails) |
| `txt_verifications` | string (joined from a companion supplier request; null if that request fails) |
| `dmarc_record` | string (joined from a companion supplier request; null if that request fails) |
| `dmarc_policy` | string (joined from a companion supplier request; null if that request fails) |

Registration data comes from RDAP, the protocol ICANN requires registries to run in place of WHOIS; rdap.org routes each domain to its registry. Registrant contact details are never read: only the registrar, dates, status, nameservers and DNSSEC.

DNS answers come from Google's public DNS-over-HTTPS resolver. `dmarc_policy` is none, quarantine or reject (null when the domain publishes no DMARC); `spf_record` is empty when it publishes no SPF, which is a deliverability red flag for its mail.

Some country-code domains run no RDAP server; their registration fields stay null while the DNS columns still fill.

### Pricing

Pay per domain: $0.002 each ($2.00 per 1,000). The first 20 rows of every run are free, so a test costs nothing.

### How to run

1. Keep the defaults for the standard sample, or set the inputs (listed last, below).
2. Run. Results land in the dataset as JSON, CSV or Excel.
3. From code or an agent: call it through the API, or as an MCP tool via mcp.apify.com.

### Source and fair use

Data comes from Data: registry RDAP servers and the public DNS. The actor fetches public pages only, honours robots.txt, keeps a low request rate with an identified user agent, and returns structured facts, never copied text, images or reviews. No personal data of individuals is included.

### FAQ

**How fresh is the data?** Each run fetches live from the source.
**Can I get more fields?** Open an issue naming the field and where it appears at the source.
**Something broke?** Open an issue. Issues are answered within 12 hours.
**Found it useful?** A short review on this page helps other people find it, and tells us what to improve.

### Inputs

- `domains`: Domains, one per line, as a domain or a URL. Every line comes back as a row; dns_status says whether the domain exists.
- `maxItems`: Stop after this many rows.

# Actor input Schema

## `domains` (type: `string`):

Domains, one per line, as a domain or a URL. Every line comes back as a row; dns_status says whether the domain exists.

## `maxItems` (type: `integer`):

Stop after this many rows.

## Actor input object example

```json
{
  "domains": "apify.com\nstripe.com\nthis-domain-does-not-exist-publicrows.com",
  "maxItems": 5000
}
```

# Actor output Schema

## `rows` (type: `string`):

Dataset items, one per domain (domain, dns_status, a_records, row_key, source_url, registrar, registrar_iana_id, created_at, expires_at, updated_at, domain_status, nameservers, dnssec_signed, mx_records, spf_record, txt_verifications, dmarc_record, dmarc_policy). Append ?format=csv or ?format=xlsx for other formats.

## `runSummary` (type: `string`):

Pages fetched, response classes, cost estimate and the quality-gate checks for this run.

# 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": `apify.com
stripe.com
this-domain-does-not-exist-publicrows.com`,
    "maxItems": 5000
};

// Run the Actor and wait for it to finish
const run = await client.actor("publicrows/domain-dns-whois").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": """apify.com
stripe.com
this-domain-does-not-exist-publicrows.com""",
    "maxItems": 5000,
}

# Run the Actor and wait for it to finish
run = client.actor("publicrows/domain-dns-whois").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": "apify.com\\nstripe.com\\nthis-domain-does-not-exist-publicrows.com",
  "maxItems": 5000
}' |
apify call publicrows/domain-dns-whois --silent --output-dataset

```

## MCP server setup

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

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/fqtx4k2vpbqiea2gu/builds/nIMFHjIjWxJ2L6eTw/openapi.json
