# Domain Lock Checker: Transfer Lock, DNSSEC, CAA (`ucchiii/domain-lock-checker`) Actor

Audit the anti-hijacking settings of your own and your clients' domains: transfer, delete and update locks, registry lock, DNSSEC, CAA, days to expiry and nameservers. One row per domain with a 0-100 score and an action-needed list. Up to 1,000 domains per run. Unknown and invalid rows are free.

- **URL**: https://apify.com/ucchiii/domain-lock-checker.md
- **Developed by:** [Actor Factory](https://apify.com/ucchiii) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 domain lock audits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 lock checker for your own and your clients' domains: is each domain locked against transfer and deletion, signed with DNSSEC, covered by a CAA record, far enough from expiry, and served by two or more nameservers? One row per domain, a 0-100 score, and a plain list of what to fix.**

> **Purpose and acceptable use:** This Actor is a defensive check for domains you own or look after for clients (registrar-lock and DNS hygiene audits, portfolio reviews, onboarding a new client). It reads only public registry data (RDAP) and public DNS for the names you give it, never registrant or contact details. Do not use it to profile other people's domains, and follow the terms of use of the registries' RDAP services.

Domain hijacking usually starts with something small: an unlocked domain that can be transferred away, a nameserver change nobody noticed, a forgotten renewal. Registrars offer the defenses, but they are spread over different screens and nobody checks them for 40 client domains at once. This Actor does: paste the list and get a table you can sort by score.

| domain | score | grade | actionNeeded | transferLock | deleteLock | updateLock | registryLock | dnssec | caaPresent | daysToExpiry |
|---|---|---|---|---|---|---|---|---|---|---|
| python.org | 40 | D | Turn on the delete lock …; Turn on the update lock …; Sign the zone with DNSSEC …; Add a CAA record that names the certificate authorities you use … | true | false | false | false | unsigned | false | 2326 |
| wikipedia.org | 75 | B | Sign the zone with DNSSEC … | true | true | true | false | unsigned | true | 60 |
| apify.com | 75 | B | Turn on the delete lock …; Turn on the update lock … | true | false | false | false | signed | true | 3123 |

*(Real rows from a run on Apify on 2026-11-13. Public domains are shown only as an example of the output; run it on domains you own or look after.)*

**Try it free:** leave the input empty and press **Start**. Three well-known `.org` domains are checked as a demo; demo rows carry `_demo: true` and are not charged.

### What is checked

| check | where it comes from | points |
|---|---|---|
| **Transfer lock**: `clientTransferProhibited` or `serverTransferProhibited` | registry RDAP status codes | 25 |
| **Delete lock**: `clientDeleteProhibited` or `serverDeleteProhibited` | registry RDAP status codes | 10 |
| **Update lock**: `clientUpdateProhibited` or `serverUpdateProhibited` (blocks nameserver and contact changes) | registry RDAP status codes | 10 |
| **Registry lock**: all three `server…Prohibited` codes (a paid service of some registrars; extra points, never an action) | registry RDAP status codes | 5 |
| **DNSSEC**: a DS record in the parent zone, compared with the registry's `delegationSigned` flag | DNS (DS) and RDAP `secureDNS` | 20 |
| **CAA**: a CAA record limits which certificate authorities may issue certificates for the name | DNS (CAA, looked up on the name and its parents) | 15 |
| **Expiry**: more than **Expiry warning** days (default 30) left | RDAP expiry date | 10 |
| **Nameservers**: two or more | RDAP (DNS if the registry lists none) | 5 |

The score is the share of points earned over the checks that could be made. If a part cannot be checked (for example a registry that publishes no expiry date, or a DNS timeout) it is left out of the score and named in `notChecked`, so a missing answer never counts against you. Grades: **A** 90+, **B** 75+, **C** 60+, **D** 40+, **F** below 40. A fully locked, signed domain without a registry lock scores 95 (grade A).

**Action needed**: every failed check becomes one item in `actionNeeded` (plain English) and `actionCodes` (short codes for filters and automations), most urgent first. Urgent registry states are flagged before everything else: `redemptionPeriod` / `pendingDelete` (restore now), `clientHold` / `serverHold` (the domain does not resolve) and `pendingTransfer` (reject it if you did not start it).

### How to use

1. **Domains**: one per line, up to 1,000 per run. URLs and subdomains are fine; a subdomain is checked against its registered domain (CAA is looked up on the subdomain first).
2. Optional: **Expiry warning (days)** (0–365, default 30), **Concurrency** (1–10, default 5), **Timeout** per request (default 8 s).
3. Schedule it monthly and send the dataset to Slack, e-mail or Google Sheets: filter on `actionCount > 0` to see only the domains that need work.

```json
{"domains": ["our-brand.com", "client-shop.org", "https://www.old-campaign.net/"], "expiryWarningDays": 45}
```

### Output

| field | meaning |
|---|---|
| `domain`, `registeredDomain`, `tld` | the name as checked, the registered domain the registry answered for, the TLD |
| `status` | `checked` (scored), `not_registered`, `unknown` (no registry answer) or `invalid` |
| `score`, `grade` | 0-100 score and A–F grade |
| `actionCount`, `actionCodes`, `actionNeeded` | what to fix, most urgent first |
| `transferLock`, `deleteLock`, `updateLock`, `registryLock` | the locks as true/false |
| `clientTransferProhibited` … `serverUpdateProhibited` | the six lock status codes one by one |
| `dnssec`, `dnssecRegistry`, `dsRecordCount` | `signed` / `unsigned` / `mismatch`, the registry's flag, DS records in DNS |
| `caaPresent`, `caaIssuers`, `caaIodef`, `caaFoundAt` | CAA found, its `issue` / `issuewild` values, whether an incident-report (iodef) record exists, where it was found |
| `expiresAt`, `daysToExpiry`, `expired` | expiry from the registry |
| `nameservers`, `nameserverCount`, `nameserverSource` | nameservers and whether they came from RDAP or DNS |
| `registrar`, `registrarIanaId` | the registrar company (who to call to change a lock) |
| `domainStatus` | every registry status code as reported |
| `notChecked`, `error`, `checkedAt` | parts left out of the score, error code, time of the check |

The run's key-value store has a `SUMMARY` record: domains checked, how many need action, not registered, unknown, invalid, charged and, if any, the `.com`/`.net` lookups that were skipped and why.

### Pricing

Pay per event: **$0.001 per domain audited** ($1.00 per 1,000 domains). Only domains whose registry record was found and scored are charged. Not registered names, unknown results, invalid input and the free demo cost nothing, and there is no start fee. Store discounts apply automatically on higher Apify plans. Set a **maximum charge per run** in Apify to cap spend; the run stops cleanly when it is reached.

### The shared `.com` / `.net` daily limit

To stay polite to Verisign, the registry for `.com` and `.net`, our domain Actors share one daily budget of lookups to its RDAP service. When the day's budget is used up, when Verisign refuses requests, or when the shared counter cannot be reached, `.com`/`.net` domains come back `unknown` (error `verisign_daily_limit`, `verisign_refused` or `verisign_counter_unavailable`) and are **not charged**. DNSSEC and CAA are still filled in on those rows. Other TLDs keep working; try the `.com`/`.net` names again later (the budget resets at 00:00 UTC).

### Limits

- Up to 1,000 domains per run (after removing duplicates). Extra names are skipped and counted in `SUMMARY` (`overLimit`).
- Polite pacing that input cannot change: at most 2 connections to one registry server at a time and at least 0.25 s between requests to it.
- TLDs without an RDAP service (many country codes, e.g. `.io`, `.de`) come back `unknown` with DNSSEC and CAA only, free. `.uk` names are never looked up in the `.uk` registry's RDAP (its terms forbid commercial copying), so they are `unknown` too.
- Lock status codes are what the registry publishes. Some registrars apply locks inside their own systems without publishing a status code; those cannot be seen from outside.
- DNS answers come from Cloudflare's public DNS over HTTPS resolver. DNSSEC is judged from the DS record in the parent zone; the Actor does not validate every signature in your zone.
- The score is a checklist, not a guarantee. Account security at your registrar (strong password, two-factor login, who has access) matters as much and cannot be checked from outside.

### Privacy

No personal data is read or returned. Registrant, administrative, technical, billing and abuse contacts in RDAP are never read; only the registrar's company name is kept. CAA incident-report (iodef) records can contain an e-mail address, so only the fact that one exists is returned, never its value. Every row carries `registrantRedacted: true`.

### FAQ

**Which locks should a domain have?** At least the transfer lock. The delete and update locks add protection against accidental or malicious changes; unlock the update lock only while you change nameservers. For high-value names, ask your registrar about a registry lock.

**Why is my domain `mismatch` for DNSSEC?** The registry says the delegation is signed, but no DS record was found in DNS. Check the DS record at your registrar; a broken DNSSEC setup can make the domain unreachable for validating resolvers.

**Do I need a CAA record?** It is optional but cheap: one DNS record that tells certificate authorities which of them may issue certificates for your domain, which makes unauthorized certificates harder to get.

**How is this different from Domain Expiry Checker?** That Actor focuses on renewal dates for a portfolio, sorted by days left. This one audits the protection settings of each domain (locks, DNSSEC, CAA) and gives a score and a to-do list; expiry is one of the checks.

### More tools from the same developer

- [Domain Expiry Checker](https://apify.com/ucchiii/domain-expiry-checker) — expiry dates of your own and your clients' domains in bulk, soonest first, with an N-days filter
- [SSL Certificate Expiry Checker](https://apify.com/ucchiii/ssl-certificate-checker) — SSL/TLS certificate expiry dates, issuer and validity for many hosts, soonest first
- [Typosquatting Checker](https://apify.com/ucchiii/lookalike-domain-finder) — brand protection: typosquats and phishing lookalikes of your own domain that exist in DNS
- [DNS Lookup](https://apify.com/ucchiii/dns-records-lookup) — bulk DNS lookup: A, AAAA, MX, NS, TXT, SPF and DMARC per domain
- [WHOIS Lookup](https://apify.com/ucchiii/whois-lookup) — bulk WHOIS (RDAP): registrar, created and expiry dates, nameservers, no personal data

# Actor input Schema

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

Your own domains, or domains you manage for clients, e.g. 'example.com'. One per line (or a JSON array from code). URLs ('https://www.example.com/page') are cut down to the host name, letters are lowercased, internationalized names become punycode and duplicates are removed. A subdomain is checked against its registered domain. Up to 1,000 domains per run. Leave empty to run a free demo (not charged). This Actor is for protecting domains you own or are responsible for.

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

A domain that expires within this many days gets the action 'renew_soon' and loses the expiry points of its score. Range 0 to 365 (default 30). Expired domains always get 'renew_now_expired'.

## `concurrency` (type: `integer`):

How many domains are checked in parallel. Allowed range 1 to 10 (default 5). Whatever you set, at most 2 connections go to one registry server at a time, with at least 0.25 s between requests to the same server, so a long list in one TLD is paced by that registry.

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

Timeout for each request, in seconds (default 8, range 1 to 60). Failed requests (rate limits, server errors, timeouts) are retried up to 3 times with a growing pause; a domain whose registry still gives no answer comes back unknown and is not charged.

## Actor input object example

```json
{
  "domains": [
    "python.org",
    "wikipedia.org",
    "mozilla.org"
  ],
  "expiryWarningDays": 30,
  "concurrency": 5,
  "timeoutSecs": 8
}
```

# Actor output Schema

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

One row per domain in the default dataset: status, score, grade, the action-needed list, the transfer / delete / update / registry locks, DNSSEC, CAA, days to expiry and nameservers.

## `summary` (type: `string`):

Record SUMMARY: how many domains were checked, how many need action, how many were not registered, unknown or invalid, how many were charged, and how many .com/.net lookups were skipped because of the shared daily limit.

# 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": [
        "python.org",
        "wikipedia.org",
        "mozilla.org"
    ],
    "expiryWarningDays": 30,
    "concurrency": 5,
    "timeoutSecs": 8
};

// Run the Actor and wait for it to finish
const run = await client.actor("ucchiii/domain-lock-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": [
        "python.org",
        "wikipedia.org",
        "mozilla.org",
    ],
    "expiryWarningDays": 30,
    "concurrency": 5,
    "timeoutSecs": 8,
}

# Run the Actor and wait for it to finish
run = client.actor("ucchiii/domain-lock-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": [
    "python.org",
    "wikipedia.org",
    "mozilla.org"
  ],
  "expiryWarningDays": 30,
  "concurrency": 5,
  "timeoutSecs": 8
}' |
apify call ucchiii/domain-lock-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ucchiii/domain-lock-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/CWJb0FpMDbDynsWjJ/builds/hxCK5xO5cSj6G1CYE/openapi.json
