# Domain RDAP, DNS and TLS Audit (`natstandridge/domain-rdap-dns-compliance-audit`) Actor

Audit a batch of domains for registrar, registration expiry, mail DNS records and TLS certificate expiry. Each delivered domain audit costs $0.002.

- **URL**: https://apify.com/natstandridge/domain-rdap-dns-compliance-audit.md
- **Developed by:** [Nathaniel Standridge](https://apify.com/natstandridge) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 delivered domain compliance audits

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

## Domain RDAP, DNS (MX/SPF/DMARC) & TLS Compliance Enricher

Batch-audit 1–100 domains in a single call for **RDAP registration lifecycle**, **DNS mail & security posture (`A`, `MX`, `SPF`, `DMARC`, `CAA`)**, and **live HTTPS port-443 TLS certificate health**. Returns structured compliance records containing `domain`, `rdapStatus`, `registrar`, `registeredAt`, `expiresAt`, `daysUntilDomainExpiry`, `domainStatuses`, `nameservers`, `dnssecSigned`, `aRecords`, `mxRecords`, `mailProvider`, `spfRecord`, `spfStrictness`, `dmarcRecord`, `dmarcPolicy`, `caaRecords`, `tlsChecked`, `tlsValid`, `tlsIssuer`, `tlsSubjectCommonName`, `tlsExpiresAt`, `daysUntilTlsExpiry`, `tlsProtocol`, `deliverabilityReady`, `riskFlags`, `observationId`, and `observedAt`.

**Pricing: Pay-Per-Event `$0.002` per delivered domain (`$2.00` per 1,000 domains). Zero API keys, zero session cookies, no startup charge.** Duplicate input domains are deduplicated before collection, and failed upstream network checks are uncharged. Run-level posture rollups and coverage diagnostics are written to key-value store `OUTPUT` at no extra Actor event charge.

### Why teams and AI agents use it

- **Vendor security & third-party risk questionnaires (TPRM / SOC 2 / ISO 27001):** Verify domain registration age, transfer locks, DNSSEC signing, DMARC `reject`/`quarantine` enforcement, CAA certificate controls, and active HTTPS certificate validity across vendor lists in seconds.
- **B2B CRM & outbound deliverability enrichment:** Identify the target organization's mail infrastructure (`google_workspace`, `microsoft_365`, `proofpoint`, `mimecast`, `protonmail`, `fastmail`, `cloudflare_email`, `custom`, or `none`), check `deliverabilityReady`, and spot broken SPF/DMARC configurations before sending or onboarding.
- **Domain & SSL expiration monitoring:** Catch `domain_expiring_soon` and `tls_expiring_soon` across client or portfolio domains without maintaining external WHOIS API subscriptions.

### Try a fast batch run

```json
{
  "domains": [
    "stripe.com",
    "cloudflare.com"
  ],
  "checkTls": true,
  "expiryWarningDays": 30,
  "maxDomains": 10
}
```

Two delivered domains cost **`$0.004`**. Enter a domain (`stripe.com`) or an HTTPS URL (`https://www.stripe.com/docs`). The Actor uses the ICANN section of its bundled Public Suffix List to identify the registered domain. DNS and TLS checks use that domain, so a hosted tenant such as `project.github.io` is checked as `github.io`.

### Example output record

```json
{
  "schemaVersion": 1,
  "observationId": "31f5a187703557b377ac23e09df184c76fe630367111d94e1c224d1a2873eec9",
  "domain": "stripe.com",
  "rdapStatus": "ok",
  "registrar": "SafeNames Ltd.",
  "registeredAt": "1995-09-12T04:00:00Z",
  "expiresAt": "2027-09-11T04:00:00Z",
  "daysUntilDomainExpiry": 296,
  "domainStatuses": [
    "client delete prohibited",
    "client transfer prohibited",
    "client update prohibited",
    "server delete prohibited",
    "server transfer prohibited",
    "server update prohibited"
  ],
  "nameservers": [
    "ns-1087.awsdns-07.org",
    "ns-1882.awsdns-43.co.uk",
    "ns-423.awsdns-52.com",
    "ns-705.awsdns-24.net"
  ],
  "dnssecSigned": false,
  "aRecords": [
    "198.137.150.41",
    "198.202.176.41"
  ],
  "mxRecords": [
    "10 aspmx.l.google.com",
    "20 alt1.aspmx.l.google.com",
    "20 alt2.aspmx.l.google.com",
    "30 aspmx2.googlemail.com",
    "30 aspmx3.googlemail.com"
  ],
  "mailProvider": "google_workspace",
  "spfRecord": "v=spf1 ip4:198.2.180.60/32 ip4:13.111.2.227/32 include:spf1.stripe.com include:greenhouse-outbound-mail.stripe.com include:_spf.qualtrics.com ~all",
  "spfStrictness": "softfail_~all",
  "dmarcRecord": "v=DMARC1; p=reject; pct=100; fo=1; rua=mailto:dmarc-reports@stripe.com; ruf=mailto:dmarc-forensics@stripe.com;",
  "dmarcPolicy": "reject",
  "caaRecords": [
    "0 iodef \"mailto:caa-violations@stripe.com\"",
    "0 issue \"amazon.com\"",
    "0 issue \"digicert.com\"",
    "0 issue \"visa.com\""
  ],
  "tlsChecked": true,
  "tlsValid": true,
  "tlsIssuer": "DigiCert, Inc. (DigiCert G5 TLS ECC SHA384 2021 CA1)",
  "tlsSubjectCommonName": "stripe.com",
  "tlsExpiresAt": "2027-05-09T23:59:59Z",
  "daysUntilTlsExpiry": 172,
  "tlsProtocol": "TLSv1.3",
  "deliverabilityReady": true,
  "riskFlags": [],
  "observedAt": "2026-11-18T06:29:46Z"
}
```

### Input parameters

| Input | Default | Constraints & behavior |
| --- | --- | --- |
| `domains` | Required | `1–100` domain names or `https://` URLs. Normalized to registrable ASCII/IDNA domains; duplicates are removed; IP literals, `localhost`, `.local`, and `.internal` hosts are rejected. |
| `checkTls` | `true` | Perform a bounded port-443 TLS handshake over verified public unicast IPv4 (with SNI) to extract certificate validity, issuer, CN, expiry, and TLS protocol. |
| `expiryWarningDays` | `30` | `1–365` days. Emits `domain_expiring_soon` or `tls_expiring_soon` in `riskFlags` when `0 <= daysUntilExpiry <= expiryWarningDays`. |
| `maxDomains` | `50` | `1–100` maximum unique domains audited and delivered per run (`prefill: 10`). |
| `requestTimeoutSeconds` | `10` | `3–25` seconds per RDAP, DNS-over-HTTPS, or TLS check. |
| `maxRunSeconds` | `120` | `30–240` seconds total run budget including safe dataset delivery reserve. |

### Classification & `riskFlags` reference

- **`mailProvider`:** `google_workspace`, `microsoft_365`, `proofpoint`, `mimecast`, `protonmail`, `fastmail`, `cloudflare_email`, `custom`, or `none` (including RFC 7505 Null MX `0 .`).
- **`spfStrictness`:** `hardfail_-all` (`-all`), `softfail_~all` (`~all`), `neutral_or_allow` (`+all`, `?all`, or missing `all`), or `missing`.
- **`dmarcPolicy`:** `reject`, `quarantine`, `none`, or `missing` from `_dmarc.<domain>`.
- **`deliverabilityReady`:** `true` when a mail exchanger is present, a single SPF record uses `-all` or `~all`, and a single DMARC record declares a recognized policy.
- **`riskFlags`:** Deterministic findings from `domain_unregistered_or_nxdomain`, `dns_servfail`, `domain_expired`, `domain_expiring_soon`, `domain_hold_status`, `missing_a_record`, `missing_mx`, `missing_spf`, `permissive_spf`, `multiple_spf_records`, `missing_dmarc`, `dmarc_policy_none`, `multiple_dmarc_records`, `non_public_dns_target`, `tls_unreachable_or_invalid`, `tls_expired`, and `tls_expiring_soon`.

### Billing, resurrection safety & scope limits

- **Single primary PPE event:** Each delivered dataset record charges `apify-default-dataset-item` (`$0.002`). Collection respects the run's remaining charge limit (`calculate_max_event_charge_count_within_limit`) before starting work.
- **Idempotent restart recovery:** Observations are frozen to `RESULT_PLAN` before dataset writes and tracked with `PENDING_DELIVERY` and `max_retries=0` cloud pushes so container resurrections never double-bill committed rows or blindly retry ambiguous writes.
- **Honest scope limits:**
  - Some country-code registries (for example `.de`) do not operate a public RDAP server. Rather than failing the domain, the Actor records `rdapStatus: "unavailable"` while completing all DNS (`A`, `MX`, `SPF`, `DMARC`, `CAA`) and live TLS checks normally.
  - SPF posture inspects the root `v=spf1` record mechanisms directly without recursive 10-lookup `include:` flattening.
  - Live TLS checks connect to port `443` on the normalized registrable domain with SNI (`server_hostname=domain`) after verifying all resolved DNS records are public unicast IPs (IPv4 preferred first). Domains with no web listener on the zone apex report `tlsValid: false` and `tls_unreachable_or_invalid` in `riskFlags`.

### Quick Integration (Apify MCP, n8n, Make & Python SDK)

#### 1. Apify MCP (`https://mcp.apify.com`) — Claude, Cursor, OpenAI Agents & ADK

Connect your AI agent to `https://mcp.apify.com/?actors=natstandridge/domain-rdap-dns-compliance-audit` (`LIMITED_PERMISSIONS`, `$0.002`/domain Pay-Per-Event):

```json
{
  "mcpServers": {
    "apify-domain-compliance-audit": {
      "url": "https://mcp.apify.com/?actors=natstandridge/domain-rdap-dns-compliance-audit",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

#### 2. n8n Workflow (Apify / HTTP Request Node)

- **Method / URL:** `POST https://api.apify.com/v2/acts/natstandridge~domain-rdap-dns-compliance-audit/run-sync-get-dataset-items`
- **Header:** `Authorization: Bearer {{ $env.APIFY_TOKEN }}`
- **JSON Body:**

```json
{
  "domains": [
    "stripe.com",
    "cloudflare.com"
  ],
  "checkTls": true,
  "expiryWarningDays": 30,
  "maxDomains": 10
}
```

#### 3. Make.com & Python SDK (`ApifyClient`)

In **Make.com**, add the **Apify -> Run an Actor** module for `natstandridge/domain-rdap-dns-compliance-audit` (enable *Run synchronously*) followed by **Apify -> Get Dataset Items**. Or call via the Python SDK (`ApifyClient`):

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("natstandridge/domain-rdap-dns-compliance-audit").call(
    run_input={
        "domains": ["stripe.com", "cloudflare.com"],
        "checkTls": True,
        "expiryWarningDays": 30,
        "maxDomains": 10,
    }
)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

# Actor input Schema

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

1-100 registered domain names or https:// URLs to audit in parallel (for example stripe.com or https://cloudflare.com/trust). Normalized to ASCII/IDNA registrable domains; duplicates are removed; IP literals and local/private hosts are rejected.

## `checkTls` (type: `boolean`):

Perform a bounded port-443 TLS handshake (with public-unicast DNS check, IPv4 preference, and SNI) to inspect certificate issuer, expiry, and negotiated TLS protocol.

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

Flag domain_expiring_soon or tls_expiring_soon in riskFlags when remaining days until expiration are less than or equal to this threshold.

## `maxDomains` (type: `integer`):

Maximum number of unique normalized domains to audit and deliver in this run.

## `requestTimeoutSeconds` (type: `integer`):

Hard timeout in seconds for each RDAP, DNS-over-HTTPS, or port-443 TLS network check.

## `maxRunSeconds` (type: `integer`):

Overall execution budget in seconds across collection and dataset delivery, reserving buffer time before platform timeout.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "cloudflare.com"
  ],
  "checkTls": true,
  "expiryWarningDays": 30,
  "maxDomains": 10,
  "requestTimeoutSeconds": 10,
  "maxRunSeconds": 120
}
```

# Actor output Schema

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

No description

## `summary` (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",
        "cloudflare.com"
    ],
    "checkTls": true,
    "maxDomains": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("natstandridge/domain-rdap-dns-compliance-audit").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",
        "cloudflare.com",
    ],
    "checkTls": True,
    "maxDomains": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("natstandridge/domain-rdap-dns-compliance-audit").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",
    "cloudflare.com"
  ],
  "checkTls": true,
  "maxDomains": 10
}' |
apify call natstandridge/domain-rdap-dns-compliance-audit --silent --output-dataset

```

## MCP server setup

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

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/0cGvI1jmarNeDm7A7/builds/cGBaCSwAuNBszigqZ/openapi.json
