# Bulk SSL Certificate Checker & DNS Lookup (`digital-tools/ssl-dns-checker`) Actor

Bulk SSL certificate expiry checker and DNS lookup for many domains at once: expiry date, days left, issuer, SANs, TLS version and validity, plus A, AAAA, CNAME, MX, NS, TXT, CAA, SOA, SPF and DMARC. Schedule it to alert before certificates expire.

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

## Pricing

Pay per event

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

### What does SSL Certificate & DNS Checker do?

**Bulk SSL Certificate Checker & DNS Lookup** checks **SSL/TLS certificates and DNS records for a whole list of domains** in one run. For each domain you get the **certificate expiry date and days remaining**, issuer, subject, SANs, TLS version, cipher and whether the certificate is **valid, expired, self-signed or a hostname mismatch** — plus **A, AAAA, CNAME, MX, NS, TXT, CAA and SOA records** and parsed **SPF and DMARC** policies.

Schedule it daily or weekly as an **SSL expiry monitor** and get alerted before a certificate expires.

### Why use it?

- 🔒 **Bulk SSL certificate checker** – hundreds of domains in minutes, with `status` = `ok`, `expiring-soon`, `expired`, `invalid` or `no-ssl`.
- ⏰ **Expiry alerts** – set **Expiry warning (days)** and connect a Slack, email or webhook integration to the run.
- 🌐 **DNS lookup in the same run** – all common record types through public resolvers (Cloudflare, Google, Quad9).
- ✉️ **Email security** – SPF and DMARC records extracted for deliverability and phishing checks.
- 🧾 **Reads broken certificates too** – expired, self-signed and mismatched certificates are still decoded so you can see why they fail.
- 💸 **Pay per domain** – non-existent domains are free.

### How to use it

1. Paste domains (or full URLs) into **Domains**.
2. Choose whether to check SSL, DNS or both, and which DNS record types.
3. Click **Start**, then download the table or connect an integration.

#### Input example

```json
{
  "domains": ["apify.com", "github.com", "expired.badssl.com"],
  "checkSsl": true,
  "checkDns": true,
  "expiryWarningDays": 30
}
```

#### Output example

```json
{
  "domain": "github.com",
  "status": "ok",
  "daysUntilExpiry": 33,
  "validTo": "2026-11-30T23:59:59+00:00",
  "issuerOrg": "Sectigo Limited",
  "subjectCN": "github.com",
  "sslValid": true,
  "tlsVersion": "TLSv1.3",
  "sans": ["github.com", "www.github.com"],
  "dns": { "A": ["140.82.112.3"], "MX": ["1 aspmx.l.google.com."], "NS": ["dns1.p08.nsone.net."] },
  "spf": "v=spf1 ip4:192.30.252.0/22 include:spf.protection.outlook.com ~all",
  "dmarc": "v=DMARC1; p=reject; pct=100"
}
```

### How much does it cost?

This Actor uses **pay-per-event (PPE)** pricing: you pay only for results, and the Apify platform compute it uses is already included.

| Event | Price | Per 1,000 |
|---|---|---|
| Domain checked | **$0.001** per domain | **$1.00** per 1,000 domains |
| Actor start | $0.0005 per run | – |

Domains that do not exist (NXDOMAIN) are **not charged**. For example, 1,000 domains cost about **$1.00**. The Actor start fee is charged once per run (one event per GB of memory; the default memory setting counts as one). You can set a **maximum cost per run** in the run options and the Actor stops cleanly when it is reached. Apify's free plan includes $5 of monthly credit, enough to try it at no cost.

### Use cases

- **SSL certificate expiry monitoring** for agencies, MSPs and DevOps teams managing many sites.
- **Domain portfolio audits** – where is DNS hosted, who issues the certificates, which domains still resolve.
- **Email deliverability checks** – find domains without SPF or with a weak DMARC policy.
- **Lead enrichment and security research** – MX provider, hosting IPs and certificate SANs for a list of company domains.

### FAQ

**Which port is checked?** 443 by default; change it under **Advanced**.

**Does it need any API key?** No. It uses direct TLS connections and public DNS resolvers.

### Other tools by Digital-Tools

- [Webpage to Markdown Converter for LLM & RAG](https://apify.com/Digital-Tools/webpage-to-markdown) – Convert any website or web page URL into clean, LLM-ready Markdown.
- [URL Metadata & Open Graph Link Preview Extractor](https://apify.com/Digital-Tools/url-metadata-extractor) – Bulk extract URL metadata and Open Graph link previews: title, description, og:image, favicon, canonical URL, Twitter Card, RSS feeds and JSON-LD schema.
- [Broken Link Checker - Find 404s & Dead Links](https://apify.com/Digital-Tools/broken-link-checker) – Crawl a website and find broken links, 404s, dead links, 5xx errors, timeouts and redirects.
- [Chinese Simplified/Traditional Converter & Pinyin Toolkit](https://apify.com/Digital-Tools/chinese-text-toolkit) – Bulk convert Simplified and Traditional Chinese (Taiwan and Hong Kong variants, with phrase conversion), generate pinyin with tones or initials, segment Chinese words and extract keywords.
- [Sitemap URL Extractor - Get All URLs from sitemap.xml](https://apify.com/Digital-Tools/sitemap-url-extractor) – Extract every URL from a website sitemap.xml.
- [RSS to JSON Feed Reader - Parse RSS & Atom](https://apify.com/Digital-Tools/rss-feed-reader) – RSS to JSON API: read RSS, Atom and RDF feeds in bulk and get clean JSON (title, link, date, author, categories, summary, full content, images and podcast enclosures).
- [PDF to Text Extractor for LLM & RAG (DOCX, PPTX, XLSX)](https://apify.com/Digital-Tools/document-to-text) – PDF to text API plus Word (DOCX), PowerPoint (PPTX) and Excel (XLSX) text extraction by URL.
- [URL Status & Redirect Chain Checker](https://apify.com/Digital-Tools/url-status-redirect-checker) – Bulk HTTP status code and redirect chain checker.
- [HTML Table Extractor - Tables to CSV & JSON](https://apify.com/Digital-Tools/html-table-extractor) – Extract HTML tables from any web page to CSV and JSON.

Questions or feature requests? Open an issue in the **Issues** tab.

# Actor input Schema

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

Domains or URLs to check for SSL certificate expiry and DNS records, e.g. example.com or https://www.example.com/page. One domain per line.

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

Connect over TLS and read the SSL/TLS certificate (expiry date, days left, issuer, SANs, validity).

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

Look up DNS records (A, MX, NS, TXT, and more) plus parsed SPF and DMARC policies.

## `recordTypes` (type: `array`):

Which DNS record types to look up (A, AAAA, CNAME, MX, NS, TXT, CAA, SOA).

## `expiryWarningDays` (type: `integer`):

Certificates expiring within this many days get status 'expiring-soon'. Use this for SSL expiry monitoring and alerts.

## `port` (type: `integer`):

TCP port for the TLS / SSL certificate check (default 443).

## `nameservers` (type: `array`):

Public DNS resolvers to use. Default: 1.1.1.1, 8.8.8.8, 9.9.9.9.

## `maxConcurrency` (type: `integer`):

How many domains to check in parallel (bulk SSL and DNS lookup).

## `timeoutSecs` (type: `integer`):

Timeout in seconds per DNS query or TLS connection.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "expired.badssl.com"
  ],
  "checkSsl": true,
  "checkDns": true,
  "recordTypes": [
    "A",
    "AAAA",
    "CNAME",
    "MX",
    "NS",
    "TXT",
    "CAA",
    "SOA"
  ],
  "expiryWarningDays": 30,
  "port": 443,
  "maxConcurrency": 10,
  "timeoutSecs": 10
}
```

# Actor output Schema

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

Dataset with one item per result.

# 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",
        "github.com",
        "expired.badssl.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("digital-tools/ssl-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": [
        "apify.com",
        "github.com",
        "expired.badssl.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("digital-tools/ssl-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": [
    "apify.com",
    "github.com",
    "expired.badssl.com"
  ]
}' |
apify call digital-tools/ssl-dns-checker --silent --output-dataset

```

## MCP server setup

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