# WHOIS & DNS Lookup: Domain Expiry, Records, SPF & DMARC (`memo23/whois-dns-lookup`) Actor

Look up domains in bulk: registrar, created and expiry dates, days to expiry, status, nameservers and DNSSEC for .com, .io, .ai, .de and more, plus A, MX, NS, TXT, SOA and CAA records, SPF, DMARC and mail provider. Add hosting, SSL certificates and subdomains.

- **URL**: https://apify.com/memo23/whois-dns-lookup.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Developer tools, SEO tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 domain looked ups

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

## WHOIS & DNS Lookup: Domain Expiry, Records, SPF & DMARC

<p align="center"><img src="https://api.apify.com/v2/key-value-stores/OmHsQQa9K28iAxuqJ/records/logo" alt="WHOIS & DNS Lookup" width="140"></p>

**Registration, DNS and email records for every domain on your list, one row each.** Give it domains, links or email addresses and get the registrar, created and expiry dates, days to expiry, domain age, registry status, nameservers and DNSSEC, read from the registry itself. Every row also carries the DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA, CAA) and what they say about email: the SPF record, the DMARC policy, the mail provider and an email-authentication grade. Add the hosting network, SSL certificates and subdomains when you need them.

### Why Use This WHOIS Lookup?

- **Registration data for more TLDs.** .com, .net, .org, .co.uk, .ai and hundreds more from the registry's own records, plus .io, .de and other TLDs whose registries publish only classic WHOIS.
- **Expiry at a glance.** Expiry date, days to expiry and domain age in days, ready to sort.
- **DNS and email in the same row.** Every common record type, SPF with its `all` setting and includes, DMARC policy and reporting addresses, and the mail provider (Google Workspace, Microsoft 365, Zoho and others).
- **Bulk lists.** Thousands of domains in one run; links and email addresses are turned into their domain, duplicates dropped.
- **Hosting, certificates and subdomains on request.** Network owner and ASN for each of the domain's addresses, certificate issuer and expiry, subdomains seen on public certificates.
- **No personal data.** Registrant details are limited to an organisation name and country when the registry shows them.

### Overview

This actor is for sales and lead teams qualifying company domains, security and IT teams auditing email authentication and certificate expiry, domain investors and brand-protection teams tracking registrations and renewals, and SEO and marketing agencies auditing client domains.

You give it a list of domains. It returns one row per domain with the sections you turned on. The dataset exports as JSON, CSV, Excel or through the API, and a `RUN_SUMMARY` record lists domains where a part did not answer.

### Supported Inputs

| What you give | What is looked up |
|---|---|
| A domain, e.g. `github.com`, `bbc.co.uk`, `spiegel.de` | That domain |
| A link, e.g. `https://www.example.com/pricing` | `example.com` |
| An email address, e.g. `jane@shop.example.co.uk` | `example.co.uk` |
| A subdomain, e.g. `blog.example.com` | `example.com` |

### Use Cases

- **Renewal tracking:** expiry dates and days left for a domain portfolio.
- **Lead qualification:** company mail provider, domain age and hosting from a list of company domains.
- **Email deliverability audits:** SPF and DMARC for every domain you send from or for.
- **Brand protection:** who registered look-alike domains, through which registrar, and when.
- **Security reviews:** DNSSEC, CAA, certificate expiry and exposed subdomains.

### How It Works

![How it works](https://api.apify.com/v2/key-value-stores/OmHsQQa9K28iAxuqJ/records/how-it-works)

1. **Add your domains,** links or email addresses.
2. **Registration data is read from each TLD's registry.**
3. **DNS records are read,** and SPF, DMARC and the mail provider worked out from them.
4. **Hosting, certificates and subdomains are added** when you turn them on.
5. **Export** the dataset as JSON, CSV or Excel, or read it through the API.

### Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `domains` | array | none | Domains, links or email addresses, one per line. |
| `includeWhois` | boolean | `true` | Registration: registrar, dates, status, nameservers, DNSSEC. |
| `includeDns` | boolean | `true` | DNS records, SPF, DMARC, mail provider. |
| `includeHosting` | boolean | `false` | Network owner, ASN, prefix, country and reverse DNS for each address. |
| `includeCertificates` | boolean | `false` | SSL certificates with issuer and expiry. |
| `includeSubdomains` | boolean | `false` | Subdomains seen on public certificates. |

#### Expiry and email setup for a list

```json
{ "domains": ["github.com", "bbc.co.uk", "spiegel.de", "stripe.com"] }
```

#### Everything for one domain

```json
{ "domains": ["openai.com"], "includeHosting": true, "includeCertificates": true, "includeSubdomains": true }
```

### Output Overview

Registration: `domain`, `expiresAt`, `daysToExpiry`, `registrar`, `registered`, `createdAt`, `domainAgeDays`, `updatedAt`, `transferredAt`, `registryStatus`, `nameservers`, `dnssec`, `registrarIanaId`, `reseller`, `registrarAbuseEmail`, `registrarAbusePhone`, `registrantOrganization`, `registrantCountry`, `whoisFrom`, `whoisNote`.

DNS and email: `ipv4`, `ipv6`, `mxRecords`, `nsRecords`, `txtRecords`, `cnameRecords`, `soa`, `caaRecords`, `mailProvider`, `spfRecord`, `spfAll`, `spfIncludes`, `multipleSpfRecords`, `dmarcRecord`, `dmarcPolicy`, `dmarcSubdomainPolicy`, `dmarcPercent`, `dmarcReportTo`, `emailAuthentication`.

Optional: `hostingNetwork`, `hostingAsn`, `hostingCountry`, `ipDetails`; `certificates`, `certificateIssuer`, `certificateExpiresAt`, `certificateDaysToExpiry`; `subdomains`, `subdomainCount`. Every row ends with `input` and `checkedAt`.

### Output Samples

```json
{
  "domain": "github.com",
  "registered": true,
  "whoisFrom": "registry RDAP",
  "registrar": "MarkMonitor Inc.",
  "createdAt": "2007-10-09T18:20:50Z",
  "expiresAt": "2028-10-09T18:20:50Z",
  "daysToExpiry": 689,
  "registryStatus": ["client delete prohibited", "client transfer prohibited", "client update prohibited"],
  "nameservers": ["dns1.p08.nsone.net", "ns-421.awsdns-52.com"],
  "dnssec": false,
  "mxRecords": [{ "priority": 0, "host": "github-com.mail.protection.outlook.com" }],
  "mailProvider": "Microsoft 365",
  "spfAll": "~all",
  "dmarcPolicy": "quarantine",
  "dmarcSubdomainPolicy": "reject",
  "emailAuthentication": "strong",
  "hostingNetwork": "GITHUB - GitHub, Inc., US",
  "certificateIssuer": "Let's Encrypt",
  "certificateDaysToExpiry": 88
}
```

### Key Output Fields

- `expiresAt`, `daysToExpiry`, `domainAgeDays`: when the registration ends and how old it is.
- `registrar`, `registryStatus`, `nameservers`, `dnssec`: who holds it and how it is locked and served.
- `mailProvider`, `spfAll`, `dmarcPolicy`, `emailAuthentication`: how the domain handles email.
- `whoisFrom`: `registry RDAP` or `registry WHOIS`, the record the registration data comes from.
- `registered`: false when the registry has no record of the domain.

### FAQ

**Which TLDs have registration data?**
Most of them: every TLD with a registry lookup (.com, .net, .org, .co.uk, .ai and hundreds more) and the ones that publish classic WHOIS (.io, .de and others). Some registries show less: .de gives nameservers and the last change but no registrar or dates. When a registry gives nothing, `whoisNote` says so.

**What does `emailAuthentication` mean?**
`strong`: SPF ends in `-all` or `~all` and DMARC is `quarantine` or `reject`. `partial`: one of them is set up. `none`: neither.

**Is personal data included?**
No. Registrant details are limited to an organisation name and country, when the registry shows them.

**What does the free Apify plan get?**
Up to 20 domains per run. Any paid Apify plan removes the limit.

**How much does it cost?**
$0.01 per run start, $0.002 per domain ($2.00 per 1,000) with registration and DNS, and $0.001 per extra lookup ($1.00 per 1,000): hosting, certificates or subdomains, each counted per domain. 1,000 domains cost $2.01, or $5.01 with all three extras. Duplicates and the run summary are never charged.

### Support

Found a bug or missing a field? Open an issue on the actor's [Issues tab](https://apify.com/memo23/whois-dns-lookup/issues) with your run link and input.

### Additional Services

Need scheduled checks with expiry alerts, or a custom export? Ask on the Issues tab; tailored work is available.

### Explore More Scrapers

- [**Domain Availability Checker**](https://apify.com/memo23/domain-availability-checker): which domains are free, in bulk, with name alternatives across 60 TLDs.
- [**Company Domain Finder**](https://apify.com/memo23/company-domain): company names to websites, logos and socials.
- [**Moz Scraper**](https://apify.com/memo23/moz-scraper): domain authority, spam score and keywords.

Full list at [apify.com/memo23](https://apify.com/memo23).

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/whois-dns-lookup`).

**Purpose:** registration (WHOIS/RDAP), DNS records, SPF, DMARC and mail provider for a list of domains; optional hosting network, SSL certificates and subdomains.

**Minimal input:**

```json
{ "domains": ["example.com"] }
```

**Output:** one row per domain: domain, registered, registrar, createdAt, expiresAt, daysToExpiry, domainAgeDays, registryStatus, nameservers, dnssec, ipv4, mxRecords, txtRecords, mailProvider, spfRecord, spfAll, dmarcPolicy, emailAuthentication; with the extras: hostingNetwork, hostingAsn, certificates, certificateDaysToExpiry, subdomains.

**Behaviors an agent should know:**

- Links, email addresses and subdomains are reduced to their registered domain.
- `registered: false` means the registry has no record; `null` with `whoisNote` means the registry gave nothing.
- Billing: $0.01 per run start, one `domain` charge per row ($0.002), one `extra-lookup` charge per extra section per domain ($0.001).

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with any domain registry or registrar. All trademarks mentioned are the property of their respective owners.

It reads public registry and DNS information and does not return personal registrant contacts. Users are responsible for making sure their use complies with applicable law and registry terms.

### SEO Keywords

whois lookup, bulk whois, domain whois api, rdap lookup, domain expiry checker, dns lookup, dns records api, mx lookup, spf checker, dmarc checker, email authentication check, domain age checker, nameserver lookup, registrar lookup, ssl certificate expiry, subdomain finder, domain hosting lookup, asn lookup

# Actor input Schema

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

One per line: a domain (example.com), a link (https://www.example.com/page) or an email address (jane@example.com). Subdomains are looked up as their registered domain.

## `includeWhois` (type: `boolean`):

Registrar, created, updated and expiry dates, days to expiry, domain age, registry status, nameservers, DNSSEC, registrar abuse contact, and the registrant organisation when public. Works for .com, .io, .ai, .de, .co.uk and other TLDs.

## `includeDns` (type: `boolean`):

A, AAAA, MX, NS, TXT, CNAME, SOA and CAA records, plus SPF, DMARC, the mail provider and an email-authentication grade.

## `includeHosting` (type: `boolean`):

For each IP: the network that hosts it (ASN and owner), its prefix, country and reverse DNS name. Charged as an extra lookup per domain.

## `includeCertificates` (type: `boolean`):

Certificates issued for the domain: issuer, names covered, valid from and to, and the current one's days to expiry. Charged as an extra lookup per domain.

## `includeSubdomains` (type: `boolean`):

Subdomains seen on the domain's public certificates. Charged as an extra lookup per domain.

## Actor input object example

```json
{
  "domains": [
    "github.com",
    "bbc.co.uk",
    "spiegel.de"
  ],
  "includeWhois": true,
  "includeDns": true,
  "includeHosting": false,
  "includeCertificates": false,
  "includeSubdomains": false
}
```

# Actor output Schema

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

All rows in the default dataset.

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

Domains with a part that did not answer, and skipped inputs.

# 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": [
        "github.com",
        "bbc.co.uk",
        "spiegel.de"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/whois-dns-lookup").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": [
        "github.com",
        "bbc.co.uk",
        "spiegel.de",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/whois-dns-lookup").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": [
    "github.com",
    "bbc.co.uk",
    "spiegel.de"
  ]
}' |
apify call memo23/whois-dns-lookup --silent --output-dataset

```

## MCP server setup

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

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/dmAZszP2NPQnaZRhY/builds/tN2glnHPHJqqcphUA/openapi.json
