# Bulk DNS, SSL Certificate & Email Security Lookup (`datasetworks/domain-dns-ssl-lookup`) Actor

Check DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA, CAA), SSL certificate expiry and issuer, email provider, SPF and DMARC for a list of domains. Flags unregistered domains. For IT, sales and AI agents.

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

## Pricing

$1.50 / 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 DNS, SSL Certificate & Email Security Lookup

**Check DNS records, SSL certificate expiry, email provider, SPF and DMARC for a whole list of domains, in one clean row per domain.**

Give it domains or URLs. For each one it returns the DNS records (A, AAAA, CNAME, MX, NS, TXT, SOA, CAA), who hosts the domain's DNS and email, its SPF and DMARC setup, and its SSL certificate (issuer, expiry date, days left, names covered, TLS version). Domains that don't exist in DNS are flagged as likely unregistered.

### Sample output

| domain | emailProvider | dnsProvider | dmarcPolicy | sslIssuer | sslDaysLeft |
| --- | --- | --- | --- | --- | --- |
| stripe.com | Google Workspace | Amazon Route 53 | reject | DigiCert, Inc. | 177 |
| allbirds.com | Microsoft 365 | MarkMonitor | quarantine | Let's Encrypt | 54 |
| notion.so | (none) | Cloudflare | quarantine | Google Trust Services | 57 |

Each row also has `ipv4`, `ipv6`, `cname`, `mx` (priority and host), `nameservers`, `txt`, `soa`, `caa`, `spf`, `spfAll` (fail / softfail / neutral), `hasDmarc`, `dmarcSubdomainPolicy`, `dmarcPct`, `verifications` (services the domain is verified with, e.g. google, facebook, apple), `resolves`, `likelyUnregistered`, `sslValid`, `sslError`, `sslValidFrom`, `sslValidTo`, `sslNames`, `sslKeyBits`, `sslFingerprint256`, `tlsVersion` and `checkedAt`.

### How to use

1. Paste domains into **Domains**, e.g. `stripe.com` (full URLs work too).
2. Run. Export as CSV, Excel or JSON, or call it via the API. Schedule it daily to catch expiring certificates or DNS changes.

### Use cases

- **SSL expiry monitoring:** list every certificate expiring in the next 30 days across your sites or clients.
- **Email deliverability and security audits:** find domains with no DMARC, a weak `p=none` policy or a missing SPF record.
- **Sales prospecting:** segment leads by email provider (Google Workspace vs Microsoft 365) or DNS/CDN provider.
- **Domain portfolio checks:** see which names don't resolve or look unregistered.
- **AI agents:** give an agent fast, structured facts about a domain's infrastructure.

### Pricing

**$1.50 per 1,000 domains** ($0.0015 per domain checked). Invalid domains and lookups that fail with a DNS server error are free. Platform usage is included.

### For AI agents

Call it via the Apify API or MCP server with `{"domains": ["example.com"]}`. You get one object per domain with fixed field names; `status` is `ok`, `not-found` (no DNS, likely unregistered) or `failed` with an `error`. Set `checkSsl` or `checkDns` to `false` to skip a part.

### Data and responsibility

DNS answers come from public resolvers (Cloudflare and Quad9). The SSL check makes one normal TLS connection to port 443, as a browser would. The tool does not query WHOIS or RDAP registries and does not return personal data: the SOA contact mailbox, DMARC report addresses and CAA contact records are left out. "Likely unregistered" is based on DNS only, so confirm with a registrar before buying a name.

### Support

Need another record type or provider detected? Open an issue on this page and we'll reply within one working day.

Built and maintained by **Dataset Works**.

# Actor input Schema

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

Domains or website URLs, e.g. 'stripe.com' or 'https://www.notion.so/pricing'. One result per domain.

## `checkDns` (type: `boolean`):

Look up A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records, plus email provider, SPF and DMARC.

## `checkSsl` (type: `boolean`):

Connect to port 443 and read the certificate: issuer, expiry date, days left, names covered, TLS version.

## `includeWww` (type: `boolean`):

Also resolve the www. subdomain's A/CNAME records.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "allbirds.com",
    "notion.so"
  ],
  "checkDns": true,
  "checkSsl": true,
  "includeWww": false
}
```

# Actor output Schema

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

No description

# 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": [
        "stripe.com",
        "allbirds.com",
        "notion.so"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasetworks/domain-dns-ssl-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": [
        "stripe.com",
        "allbirds.com",
        "notion.so",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datasetworks/domain-dns-ssl-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": [
    "stripe.com",
    "allbirds.com",
    "notion.so"
  ]
}' |
apify call datasetworks/domain-dns-ssl-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datasetworks/domain-dns-ssl-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/Itr6bct61fpp92sfE/builds/KYvytgGZcwHvQizJf/openapi.json
