# Domain WHOIS & DNS Lookup - Bulk Domain Intelligence (`santamaria-automations/domain-whois-dns`) Actor

Bulk domain intelligence — WHOIS records (registrar, dates, contacts), DNS records (A, MX, TXT, NS), and email provider detection. Perfect for B2B prospecting, security audits, domain monitoring, and data enrichment.

- **URL**: https://apify.com/santamaria-automations/domain-whois-dns.md
- **Developed by:** [Alessandro Santamaria](https://apify.com/santamaria-automations) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 domain lookup completeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Domain WHOIS & DNS Lookup - Bulk Domain Intelligence at $0.003

Know everything about any domain in seconds — full WHOIS, complete DNS footprint, SPF/DMARC/DKIM posture, and automatic email provider detection (Google Workspace, Microsoft 365, Zoho...). **Built for B2B prospecting, security audits and infrastructure research** — a fraction of the cost of SecurityTrails or DomainTools.

### What you get

- **Full WHOIS** — registrar, creation/update/expiry dates, registrant org & country, name servers, EPP status codes, DNSSEC flag
- **Age + expiry pre-calculated** — `age_days` and `days_until_expiry` ready to filter
- **Complete DNS** — A, AAAA, MX, TXT, NS, CNAME, SOA in a single query
- **Email security audit** — automatic SPF, DMARC and DKIM detection
- **Email provider detection** — Google Workspace, Microsoft 365, Zoho, Proton, IONOS, Infomaniak and 15+ more identified from MX records
- **Smart input normalization** — accepts URLs, `www.` prefixes, bare domains; deduplicates automatically
- **No API keys, no setup** — paste domains and run

### Example output

```json
{
  "domain": "apple.com",
  "whois": {
    "registrar": "CSC Corporate Domains, Inc.",
    "registrant_organization": "Apple Inc.",
    "registrant_country": "US",
    "created_date": "1987-02-19T05:00:00Z",
    "updated_date": "2024-01-25T16:54:20Z",
    "expires_date": "2026-02-20T05:00:00Z",
    "age_days": 14293,
    "days_until_expiry": 320,
    "name_servers": ["a.ns.apple.com", "b.ns.apple.com", "c.ns.apple.com", "d.ns.apple.com"],
    "status": ["clientTransferProhibited", "serverDeleteProhibited"],
    "dnssec": false
  },
  "dns": {
    "a": ["17.253.144.10"],
    "aaaa": ["2620:149:af0::10"],
    "mx": [{ "priority": 10, "host": "apple.com.s.mail-aol.com" }],
    "txt": ["v=spf1 include:_spf.apple.com ~all"],
    "ns": ["a.ns.apple.com", "b.ns.apple.com"],
    "soa": {
      "primary_ns": "a.ns.apple.com",
      "admin_email": "hostmaster@apple.com",
      "serial": 2024012501
    }
  },
  "has_spf": true,
  "has_dmarc": true,
  "has_dkim": false,
  "email_provider": "Other / Self-hosted",
  "scraped_at": "2026-04-07T12:34:56Z"
}
````

### How to use

Drop a list of domains (URLs work too — they're normalized automatically) into the `domains` input and run. One structured record per domain comes back with full WHOIS + DNS + email posture.

#### Input

| Parameter | Description | Default |
|-----------|-------------|---------|
| `domains` | Domains to look up (URLs auto-normalized) | *(required)* |
| `includeWhois` | Perform WHOIS lookups | `true` |
| `includeDNS` | Perform DNS lookups + SPF/DMARC/DKIM | `true` |
| `dnsRecordTypes` | Record types to query | `["A","AAAA","MX","TXT","NS","CNAME","SOA"]` |
| `useDNSServer` | DNS resolver (`host:port`) | `8.8.8.8:53` |
| `timeoutSeconds` | Per-query timeout | `10` |

### Use cases

- **B2B sales targeting** — identify which prospects use Google Workspace vs Microsoft 365 and tailor your pitch
- **Security audits** — flag every domain missing SPF, DMARC or DKIM as a spoofing-risk finding
- **Fraud & phishing detection** — low `age_days` + privacy protection is a classic phishing signal
- **Due diligence** — map a target company's full DNS footprint before an M\&A deal
- **Domain portfolio monitoring** — track expiry dates across thousands of domains; catch lapses before competitors do
- **Competitive intel** — detect when competitors re-platform email or change DNS infrastructure
- **Lead list enrichment** — append domain age, email provider and email security to scraped CRM exports

### Pricing

| Event | Price |
|-------|-------|
| Actor start | $0.001 |
| Per domain looked up | $0.003 |

**Example**: Look up 10,000 domains = **$30.01** (vs SecurityTrails starter at $99/mo for limited queries)

| Domains | Cost |
|---------|------|
| 100 | $0.30 |
| 1,000 | $3.00 |
| 10,000 | $30.00 |

No monthly fees. No minimum spend.

### Tips

- **URLs are fine** — `https://example.com/about?x=1` is normalized to `example.com` automatically
- **GDPR redaction** — most registrant contact info is blank for `.com`/`.net` domains registered after 2018; the raw WHOIS text is always preserved
- **Missing DMARC** — `has_dmarc: false` is one of the easiest security audit findings to flag
- **Switch resolvers** — if one resolver is rate-limited, try `1.1.1.1:53` (Cloudflare) or `9.9.9.9:53` (Quad9)

### Issues & Feedback

Found a bug or need an additional field? [Open an issue on the Issues tab](https://console.apify.com/actors/jnswssnlnwqebjCLp/issues) — we respond within 24 hours.

### Related Actors

- [Website Tech Stack Detector](https://apify.com/santamaria-automations/website-tech-detector-scraper) — identify CMS, frameworks, analytics, CDN and 2000+ technologies
- [Email Verifier](https://apify.com/santamaria-automations/email-verifier-scraper) — bulk email validation at $0.002 per address
- [Phone Number Validator](https://apify.com/santamaria-automations/phone-validator) — bulk international phone validation
- [Website Contact Extractor](https://apify.com/santamaria-automations/website-contact-extractor) — extract emails, phones and team members from any website
- [Website Intelligence Extractor](https://apify.com/santamaria-automations/website-intelligence-extractor) — full company summary, products and team extraction
- [Google Maps Scraper](https://apify.com/santamaria-automations/google-maps-scraper) — discover businesses worldwide with contact details

# Actor input Schema

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

List of domains to look up. Accepts bare domains (example.com), URLs (https://example.com/path), or www-prefixed variants — everything is normalized automatically.

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

Whether to perform WHOIS lookups. Returns registrar, registration/expiry dates, name servers, EPP status codes, DNSSEC flag, and contact info (most personal info is redacted post-GDPR).

## `includeDNS` (type: `boolean`):

Whether to perform DNS record lookups (A, AAAA, MX, TXT, NS, CNAME, SOA) and derive SPF/DMARC/DKIM presence + email provider.

## `dnsRecordTypes` (type: `array`):

Which DNS record types to query. Supported: A, AAAA, MX, TXT, NS, CNAME, SOA. Default queries all common types.

## `useDNSServer` (type: `string`):

DNS resolver to use (host:port format). Defaults to Google Public DNS (8.8.8.8:53). Examples: 1.1.1.1:53 (Cloudflare), 9.9.9.9:53 (Quad9).

## `timeoutSeconds` (type: `integer`):

Per-query timeout for WHOIS and DNS lookups.

## Actor input object example

```json
{
  "domains": [
    "apple.com",
    "google.com",
    "github.com"
  ],
  "includeWhois": true,
  "includeDNS": true,
  "dnsRecordTypes": [
    "A",
    "AAAA",
    "MX",
    "TXT",
    "NS",
    "CNAME",
    "SOA"
  ],
  "useDNSServer": "8.8.8.8:53",
  "timeoutSeconds": 10
}
```

# Actor output Schema

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

Dataset containing WHOIS + DNS records per domain

# 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": [
        "apple.com",
        "google.com",
        "github.com"
    ],
    "dnsRecordTypes": [
        "A",
        "AAAA",
        "MX",
        "TXT",
        "NS",
        "CNAME",
        "SOA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/domain-whois-dns").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": [
        "apple.com",
        "google.com",
        "github.com",
    ],
    "dnsRecordTypes": [
        "A",
        "AAAA",
        "MX",
        "TXT",
        "NS",
        "CNAME",
        "SOA",
    ],
}

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "apple.com",
    "google.com",
    "github.com"
  ],
  "dnsRecordTypes": [
    "A",
    "AAAA",
    "MX",
    "TXT",
    "NS",
    "CNAME",
    "SOA"
  ]
}' |
apify call santamaria-automations/domain-whois-dns --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=santamaria-automations/domain-whois-dns",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Domain WHOIS & DNS Lookup - Bulk Domain Intelligence",
        "description": "Bulk domain intelligence — WHOIS records (registrar, dates, contacts), DNS records (A, MX, TXT, NS), and email provider detection. Perfect for B2B prospecting, security audits, domain monitoring, and data enrichment.",
        "version": "1.0",
        "x-build-id": "Lc9AgaD7jrjwwcuQe"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/santamaria-automations~domain-whois-dns/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-santamaria-automations-domain-whois-dns",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/santamaria-automations~domain-whois-dns/runs": {
            "post": {
                "operationId": "runs-sync-santamaria-automations-domain-whois-dns",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/santamaria-automations~domain-whois-dns/run-sync": {
            "post": {
                "operationId": "run-sync-santamaria-automations-domain-whois-dns",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Domains",
                        "type": "array",
                        "description": "List of domains to look up. Accepts bare domains (example.com), URLs (https://example.com/path), or www-prefixed variants — everything is normalized automatically.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeWhois": {
                        "title": "Include WHOIS",
                        "type": "boolean",
                        "description": "Whether to perform WHOIS lookups. Returns registrar, registration/expiry dates, name servers, EPP status codes, DNSSEC flag, and contact info (most personal info is redacted post-GDPR).",
                        "default": true
                    },
                    "includeDNS": {
                        "title": "Include DNS",
                        "type": "boolean",
                        "description": "Whether to perform DNS record lookups (A, AAAA, MX, TXT, NS, CNAME, SOA) and derive SPF/DMARC/DKIM presence + email provider.",
                        "default": true
                    },
                    "dnsRecordTypes": {
                        "title": "DNS Record Types",
                        "type": "array",
                        "description": "Which DNS record types to query. Supported: A, AAAA, MX, TXT, NS, CNAME, SOA. Default queries all common types.",
                        "default": [
                            "A",
                            "AAAA",
                            "MX",
                            "TXT",
                            "NS",
                            "CNAME",
                            "SOA"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "useDNSServer": {
                        "title": "DNS Resolver",
                        "type": "string",
                        "description": "DNS resolver to use (host:port format). Defaults to Google Public DNS (8.8.8.8:53). Examples: 1.1.1.1:53 (Cloudflare), 9.9.9.9:53 (Quad9).",
                        "default": "8.8.8.8:53"
                    },
                    "timeoutSeconds": {
                        "title": "Timeout (seconds)",
                        "minimum": 1,
                        "maximum": 60,
                        "type": "integer",
                        "description": "Per-query timeout for WHOIS and DNS lookups.",
                        "default": 10
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
