# Domain RDAP & DNS Lookup (`dojito/domain-rdap-dns-lookup`) Actor

Check domains in bulk: registered or available, registrar, created and expiry dates, EPP status, nameservers and DNSSEC from the registry's RDAP server (the WHOIS successor), plus A, AAAA, MX, NS, TXT and CNAME records. One row per domain, no contact data.

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

## Pricing

from $1.50 / 1,000 results

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 Lookup** checks a list of domains and returns **one row per domain**: is it **registered or available**, the **registrar**, **created / expires / updated dates**, **EPP status codes**, **nameservers** and **DNSSEC**, plus its **DNS records** (A, AAAA, MX, NS, TXT, CNAME).

Registration data comes from the registry's own **RDAP** server (Registration Data Access Protocol — the official, structured successor of WHOIS), found through the [IANA RDAP bootstrap file](https://data.iana.org/rdap/dns.json). DNS records come from Cloudflare's public resolver [1.1.1.1](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-json/) over HTTPS. No contact data is ever returned — no registrant names, e-mails, phones or addresses.

### How to use

1. Click **Start** — the input is prefilled with two domains, so you see rows in a few seconds.
2. Replace them with your domains, one per line. URLs and subdomains are fine: `https://www.blog.example.com/page` is checked as `example.com`.
3. Turn **Registration data (RDAP)** or **DNS records** off if you only need one, and pick the **DNS record types**.
4. Set **Max results** to cap what you pay, then click **Start**. Export the table as JSON, CSV or Excel, or use the Apify API.

### What you get

One row per domain. Rows from a real run (2026-11-15, input below), shortened:

```json
[
{"domain": "python.org", "registered": true, "registeredSource": "rdap", "registrar": "Gandi SAS", "registrarIanaId": "81", "createdAt": "1995-03-27T05:00:00.545Z", "expiresAt": "2033-03-28T05:00:00Z", "updatedAt": "2026-08-12T05:01:11.536Z", "domainStatus": ["client transfer prohibited"], "nameservers": ["ns-1134.awsdns-13.org", "ns-2046.awsdns-63.co.uk", "ns-484.awsdns-60.com", "ns-981.awsdns-58.net"], "dnssec": false, "dnsStatus": "NOERROR", "dns": {"A": ["151.101.0.223", "151.101.192.223", "151.101.64.223", "151.101.128.223"], "AAAA": ["2a04:4e42:200::223", "..."], "MX": ["50 mail.python.org"], "NS": ["ns-1134.awsdns-13.org", "..."], "TXT": ["MS=73147F1EC0843C399CF17F586EC6B8EAF8C57961", "..."]}, "rdapServer": "https://rdap.publicinterestregistry.org/rdap/", "rdapNote": null, "lookupStatus": "ok"},
{"domain": "dojito-unregistered-test-7q.com", "registered": false, "registeredSource": "rdap", "registrar": null, "createdAt": null, "expiresAt": null, "dnsStatus": "NXDOMAIN", "dns": {"A": [], "AAAA": [], "MX": [], "NS": [], "TXT": []}, "rdapServer": "https://rdap.verisign.com/com/v1/", "lookupStatus": "ok"},
{"domain": "cbc.ca", "registered": true, "registeredSource": "dns", "registrar": null, "dnsStatus": "NOERROR", "dns": {"A": ["184.26.199.32"], "MX": ["10 eu-smtp-inbound-1.mimecast.com", "10 eu-smtp-inbound-2.mimecast.com"], "...": "..."}, "rdapNote": "registry_terms: this registry's RDAP terms restrict automated or commercial use (or were not reviewed) — DNS data only (rdap.ca.fury.ca)"}
]
```

| Field | Meaning |
|---|---|
| `domain` | The registered domain that was checked (lower-case, IDNs in punycode `xn--…`). `input` = what you entered. `tld` = the top-level domain. |
| `registered` | `true` / `false`, or `null` if it could not be told. See `registeredSource`. |
| `registeredSource` | `rdap` — the registry answered (a "not found" answer = not registered). `dns` — no RDAP used for this TLD, so it is inferred from DNS: the name exists (`true`) or the TLD's servers say it does not exist, NXDOMAIN (`false`). |
| `registrar` / `registrarIanaId` | Registrar name and its IANA id, from RDAP. |
| `createdAt` / `expiresAt` / `updatedAt` | Registration, expiration and last-changed dates from RDAP (ISO 8601, UTC). |
| `domainStatus` | EPP status codes, e.g. `client transfer prohibited`, `redemption period`, `pending delete` ([what they mean](https://icann.org/epp)). |
| `nameservers` / `dnssec` | Delegated nameservers and whether the delegation is DNSSEC-signed, from RDAP. |
| `dnsStatus` | Resolver answer for the domain: `NOERROR`, `NXDOMAIN` (does not exist), `SERVFAIL` (its nameservers did not answer)… |
| `dns` | `{"A": [...], "MX": ["10 mx.example.com"], "NS": [...], "TXT": [...]}` — records for the domain itself (not `www.`). `[]` = no records, `null` = that lookup failed (see `errors`). |
| `rdapServer` / `rdapNote` | RDAP server used, or why none was used: `no_rdap_service` (the TLD has no RDAP), `registry_terms: …` (see Limits), `robots_txt: …`. |
| `lookupStatus` | `ok`, or `partial` when one DNS lookup failed but the rest of the row is good. `errors` lists what failed. |
| `checkedAt` | When the row was made (UTC). |

### Use cases

- **Domain availability** — check a list of name ideas: `registered: false` from RDAP means the registry has no such domain. (Reserved or premium names can still be unavailable — confirm at a registrar before you count on one.)
- **Expiry monitoring** — schedule a weekly run over your own or your clients' domains and watch `expiresAt` and `domainStatus` (for example `redemption period`).
- **Email and DNS audits** — MX and TXT (SPF, DMARC verification strings) for a list of domains, to see which mail provider each uses.
- **Vendor and due-diligence checks** — how old is a company's domain, which registrar, which DNS host.
- **Portfolio inventory** — registrar, nameservers and DNSSEC for every domain you manage, in one table.

### Input

| Field | What it does |
|---|---|
| `domains` | Domains, URLs or e-mail addresses (up to 1,000). Each is reduced to its registered domain with the [Public Suffix List](https://publicsuffix.org/) (`shop.example.co.uk` → `example.co.uk`). Invalid entries are skipped (free) and listed in the run report. |
| `rdap` | Registration data from RDAP (default on). |
| `dns` | DNS records (default on). |
| `recordTypes` | Any of `A`, `AAAA`, `MX`, `NS`, `TXT`, `CNAME` (default `A`, `MX`, `NS`, `TXT`). After an `NXDOMAIN` answer the other types are not asked. |
| `maxItems` | Domain rows per run (default 100, max 1,000). |

The input behind the rows above:

```json
{
  "domains": ["python.org", "https://www.mozilla.com/en-US/", "github.io", "cbc.ca", "dojito-unregistered-test-7q.com", "bbc.co.uk", "denic.de"],
  "recordTypes": ["A", "AAAA", "MX", "NS", "TXT"],
  "maxItems": 10
}
```

### Pricing

**$1.50 per 1,000 domains** on the Free plan, **$1.30** on Bronze and **$1.00** on Silver and above (pay per event: one `apify-default-dataset-item` event per domain row, plus Apify's standard actor-start event of $0.00005 per run). Domains that are invalid, whose lookup failed (registry error, rate limit, no DNS answer at all), or for which there is nothing to report (`no_data`), are **not charged** and are listed in the run report — run them again later. Set a **maximum cost per run** and the actor stops cleanly when it is reached (`stoppedAtMaxCharge`); rows are saved one by one, so you keep everything you paid for. Platform usage (compute, storage) is included in the price — it is not billed to you separately.

### Run report

The **RUN_REPORT** record in the run's key-value store lists every skipped domain with a reason. A run with zero rows ends **FAILED** so schedules and alerts notice.

| reason | meaning |
|---|---|
| `invalid` | Not a domain name, or a public suffix like `co.uk`. |
| `rdap_error` | The registry's RDAP server answered an error or nothing usable (after 2 retries). |
| `rate_limited` | The registry answered "429 too many requests"; after two in a row the actor stops asking that registry for the rest of the run. |
| `dns_error` | No DNS lookup for the domain got an answer (network / resolver errors). |
| `no_data` | Nothing to report: no RDAP used for this TLD (none exists, or its registry's terms exclude it) and DNS was off or gave no records. |
| `internal_error` | An unexpected error in the actor for this domain (please tell us). |

It also records duplicates removed, request counts, which RDAP servers were used, `stoppedAtMaxItems`, `notReached`, `stoppedAtMaxCharge` and `stoppedAtTimeLimit` (the run stops taking new domains 90 seconds before its timeout, so the report is always saved).

### Limits — be aware

- **RDAP only for registries whose terms allow it.** Registry RDAP services publish terms of use. We read them (November 2026). RDAP is used for registries whose terms do not forbid copying or commercial re-use of the data: **Verisign** (.com, .net), **Public Interest Registry** (.org and 10 more) and **Identity Digital** (.io, .ai, .info and ~450 other TLDs). Other registries — for example CIRA (.ca), Nominet (.uk), GoDaddy Registry (.us, .biz), Google Registry (.dev, .app), CentralNic (.xyz) — forbid aggregating, copying or commercially re-using their data, or were not reviewed, so those domains get **DNS data only** (`registeredSource: "dns"`, `rdapNote: "registry_terms: …"`). Some TLDs (e.g. .de, .jp) have no RDAP service at all (`no_rdap_service`).
- **Slow on purpose: one request per registry every 2 seconds.** Registries throttle RDAP and their terms forbid "high volume, automated" querying, so each run asks each registry at most once every 2 seconds, honours `Retry-After`, and stops asking a registry after two 429 answers in a row. 1,000 `.com` domains take roughly 35 minutes (2 s each); a mix of TLDs is faster. Runs are capped at 1,000 domains.
- **`registered: false` is not a guarantee of availability.** Registries answer "not found" for names that are reserved, blocked or sold as premium names by the registry, and a name can be registered seconds later. From DNS (`registeredSource: "dns"`), a registered domain that is on hold or has no nameservers also looks like NXDOMAIN.
- **Registry (thin) data only.** For .com and .net the registry's RDAP holds the registrar, dates, status and nameservers; the registrar's own RDAP (with more detail) is not queried.
- **DNS is one resolver's view, now.** Records are what 1.1.1.1 returned at `checkedAt`; geo-DNS and CDNs can answer differently elsewhere.

### Responsible use

- All three registries whose RDAP this actor uses (Verisign, Public Interest Registry, Identity Digital) say their data must not be used to "enable high volume, automated, electronic processes that send queries or data to the systems of" the registry or any ICANN-accredited registrar, and none publishes a numeric limit ([Verisign terms](https://www.verisign.com/domain-names/registration-data-access-protocol/terms-service/index.xhtml), [Identity Digital RDDS policy](https://www.identity.digital/policies/rdds-access-policy); Public Interest Registry's are in every RDAP answer). Bulk lookup sits in a gray area of those terms. Each run keeps its own load low (one request per registry every 2 seconds, up to 1,000 domains, stop on HTTP 429), but these limits apply per run, a registry may still throttle or block requests, and affected domains are then skipped and not charged (`rate_limited`). **What you do with the data is your responsibility**: do not use it for spam, automated registration or drop-catching, to build or resell bulk registration databases, or for anything else a registry's terms forbid.
- No contact data from RDAP: the actor never outputs registrant, administrative, technical or abuse contacts (names, e-mails, phones, addresses), only the registrar's name. URL credentials and the part of an e-mail address before `@` are removed from the `input` field. DNS TXT records are returned as the domain owner published them.
- The bot identifies itself: `DojitoDomainBot/1.0 (+https://apify.com/dojito/domain-rdap-dns-lookup; contact djkim@dojito.com)`, and follows each server's robots.txt.
- General information, not legal advice — ask a lawyer about your own use.

### FAQ

**Is this a WHOIS lookup?** It returns what a WHOIS lookup is mostly used for (registered?, registrar, dates, status, nameservers) through RDAP, the JSON protocol that ICANN made the official replacement of WHOIS for generic TLDs in 2025. Port-43 WHOIS servers are not queried.

**Why is `registrar` empty for my .ca / .uk domain?** That registry's RDAP terms do not allow this kind of use, so only DNS data is returned (see Limits).

**Can I check `www.example.com` records?** Records are looked up for the registered domain (`example.com`). Use a DNS-specific tool for individual host names.

**How do I watch for expiring domains?** Schedule a weekly run with RDAP on and DNS off, and filter `expiresAt`.

### More tools from this developer

Other public actors by [dojito](https://apify.com/dojito):

- [Product Price & Stock Checker for US Online Stores](https://apify.com/dojito/us-product-price-stock) — price, currency, in-stock status, SKU/GTIN and brand from public product pages that publish schema.org Product data (Shopify, WooCommerce, BigCommerce, Magento and others).
- [ATS Job Board Feed](https://apify.com/dojito/ats-job-boards-feed) — every open job from Greenhouse, Lever, Ashby, Recruitee, Personio and Teamtailor boards in one schema, from their documented public APIs and feeds.
- [Sitemap URL Extractor](https://apify.com/dojito/sitemap-url-extractor) — every URL in a website's sitemaps with lastmod, changefreq, priority and hreflang alternates. Never downloads the pages themselves.
- [Wayback Machine Snapshot History](https://apify.com/dojito/wayback-snapshot-history) — every Internet Archive capture of a URL, folder or whole domain from the official CDX API, or one summary row per URL.

Using them together:

- **Checking a domain before you buy or link to it:** run Domain RDAP & DNS Lookup for registration status, expiry date and DNS, then Wayback Machine Snapshot History with Match = "Domain + subdomains" and Output = "Summary" to see when the site was first and last archived and how often its content changed.
- **Site migration or content audit:** list a site's URLs with Sitemap URL Extractor, then paste the pages you care about into Wayback Machine Snapshot History (Output = "Summary") to get each page's first and last capture.

***

Not affiliated with IANA, ICANN, Cloudflare or any registry. Uses the [Public Suffix List](https://publicsuffix.org/) (MPL-2.0).

# Actor input Schema

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

Domain names, one per line (example.com, example.co.uk). URLs and subdomains are accepted and reduced to the registered domain: https://www.blog.example.com/page → example.com. Up to 1,000 per run; duplicates are checked once.

## `rdap` (type: `boolean`):

Ask the registry's RDAP server: registered or not, registrar, created / expires / updated dates, EPP status, nameservers, DNSSEC. Used for .com, .net, .org, .io, .ai, .info and ~450 other TLDs whose registry terms allow it; other TLDs get DNS data only (see README).

## `dns` (type: `boolean`):

Look up the record types below through Cloudflare's public resolver (1.1.1.1, DNS over HTTPS).

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

Any of A, AAAA, MX, NS, TXT, CNAME. Default: A, MX, NS, TXT.

## `maxItems` (type: `integer`):

Stop after this many domain rows (you pay per row). Domains that fail are not charged.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "wikipedia.org"
  ],
  "rdap": true,
  "dns": true,
  "recordTypes": [
    "A",
    "MX",
    "NS",
    "TXT"
  ],
  "maxItems": 100
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per domain: registration data (RDAP) and DNS records. Each row is one paid result.

## `runReport` (type: `string`):

JSON: rows, skipped domains by reason (invalid, rdap_error, rate_limited, dns_error), details, request count. Free.

# 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": [
        "example.com",
        "wikipedia.org"
    ],
    "recordTypes": [
        "A",
        "MX",
        "NS",
        "TXT"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dojito/domain-rdap-dns-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": [
        "example.com",
        "wikipedia.org",
    ],
    "recordTypes": [
        "A",
        "MX",
        "NS",
        "TXT",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("dojito/domain-rdap-dns-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": [
    "example.com",
    "wikipedia.org"
  ],
  "recordTypes": [
    "A",
    "MX",
    "NS",
    "TXT"
  ]
}' |
apify call dojito/domain-rdap-dns-lookup --silent --output-dataset

```

## MCP server setup

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