# Domain DNS & RDAP Profile: mail, SPF, DMARC, registrar (`asunoki/domain-dns-rdap-profile`) Actor

Bulk DNS lookup and RDAP domain profile for a list of domains: A, AAAA, NS, MX, TXT records, mail provider, SPF includes, DMARC policy, and RDAP registrar, created and expiry dates. Technical facts only, no registrant or contact data. Fast, no browser.

- **URL**: https://apify.com/asunoki/domain-dns-rdap-profile.md
- **Developed by:** [Seisuke Nagahara](https://apify.com/asunoki) (community)
- **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 domains

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 DNS & RDAP Profile: mail provider, SPF, DMARC, registrar, expiry

Paste domains (or website URLs) and get one row per domain with its DNS records, how its email is set up, and its registration facts.

### What you get (one row per domain)

- DNS: `a`, `aaaa`, `nameservers`, `mx`
- Email: `mailProvider` (Google Workspace, Microsoft 365, Zoho, Cloudflare Email Routing, …), `hasSpf`, `spfIncludes`, `hasDmarc`, `dmarcPolicy`
- Registration (RDAP): `registrar`, `registeredAt`, `expiresAt`, `daysToExpiry`, `lastChangedAt`, `domainStatus`, `rdapFound`

Technical facts only. No registrant name, e-mail, phone or address is read into the output.

### Typical uses

- Check email authentication (SPF, DMARC) across a client or prospect list.
- Watch domain expiry dates for a portfolio.
- Find which companies use Google Workspace or Microsoft 365 before an outreach or migration project.

### Sample output

Real rows from a test run on 2026-11-14 (shortened to one result and one error row). Error rows are not charged.

```json
[
  {
    "domain": "python.org",
    "status": "ok",
    "a": [
      "151.101.64.223",
      "151.101.128.223",
      "151.101.0.223",
      "151.101.192.223"
    ],
    "aaaa": [
      "2a04:4e42::223",
      "2a04:4e42:400::223",
      "2a04:4e42:600::223",
      "2a04:4e42:200::223"
    ],
    "nameservers": [
      "ns-1134.awsdns-13.org",
      "ns-2046.awsdns-63.co.uk",
      "ns-484.awsdns-60.com",
      "ns-981.awsdns-58.net"
    ],
    "mx": [
      "mail.python.org"
    ],
    "mailProvider": "Other",
    "hasSpf": true,
    "spfIncludes": [
      "stspg-customer.com",
      "_spf.google.com",
      "mailgun.org"
    ],
    "hasDmarc": true,
    "dmarcPolicy": "none",
    "registrar": "Gandi SAS",
    "registeredAt": "1995-03-27T05:00:00.545Z",
    "expiresAt": "2033-03-28T05:00:00Z",
    "lastChangedAt": "2026-08-12T05:01:11.536Z",
    "daysToExpiry": 2325,
    "domainStatus": [
      "client transfer prohibited"
    ],
    "rdapNameservers": [
      "ns-1134.awsdns-13.org",
      "ns-2046.awsdns-63.co.uk",
      "ns-484.awsdns-60.com",
      "ns-981.awsdns-58.net"
    ],
    "rdapFound": true,
    "checkedAt": "2026-11-14T06:34:11.410Z"
  },
  {
    "domain": "no-such-domain-asunoki-test.com",
    "status": "error",
    "errorType": "nxdomain",
    "message": "domain does not exist (NXDOMAIN)"
  }
]
```

### Run it from code

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("asunoki/domain-dns-rdap-profile").call(run_input={
    "domains": ["example.com", "python.org", "nodejs.org"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["domain"], row.get("mailProvider"), row.get("dmarcPolicy"), row.get("expiresAt"))
```

Works the same from JavaScript, the REST API, Make, Zapier, n8n and Apify integrations. For expiry watching, schedule a weekly run and filter rows where `daysToExpiry` is below your threshold.

### Pricing

Pay per event: **`domain` = $0.002 per domain profile saved ($2.00 per 1,000 domains).**

- Invalid or non-existent domains are saved as error rows and **are not charged**.
- Examples: 100 prospect domains ≈ $0.20. A 5,000-domain list ≈ $10.00.
- You do not pay Apify platform usage (compute) on top of these events: the Actor's publisher covers it. A small `apify-actor-start` fee ($0.00005 per run at the default 256 MB memory) is charged once per run.
- Limit spend per run by splitting large lists, or with Apify's maximum charge per run setting.

### Limits

- DNS answers come from a public DNS-over-HTTPS resolver at the time of the run.
- Some TLDs (for example .jp) do not offer RDAP; those rows show `rdapFound: false` and no registration dates.
- `mailProvider` is inferred from MX host names; unknown providers show `Other`.

# Actor input Schema

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

Domains or website URLs, e.g. example.com or https://www.example.com

## `includeRdap` (type: `boolean`):

Registrar, created and expiry dates. Some TLDs have no RDAP service; those rows show rdapFound=false.

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

How many domains are checked at the same time.

## Actor input object example

```json
{
  "domains": [
    "nodejs.org",
    "python.org",
    "shopify.com"
  ],
  "includeRdap": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

All rows.

## `runStatistics` (type: `string`):

Counts and charged events (key-value store record STATS).

# 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": [
        "nodejs.org",
        "python.org",
        "shopify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("asunoki/domain-dns-rdap-profile").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": [
        "nodejs.org",
        "python.org",
        "shopify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("asunoki/domain-dns-rdap-profile").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": [
    "nodejs.org",
    "python.org",
    "shopify.com"
  ]
}' |
apify call asunoki/domain-dns-rdap-profile --silent --output-dataset

```

## MCP server setup

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

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/oEhk2b3nJfFuSp1Sf/builds/lojvrSZo0zc9Sc6BE/openapi.json
