# DNS Propagation Checker: Compare Resolver Answers (`ucchiii/dns-propagation-checker`) Actor

Check whether a DNS change has spread: for each domain and record type (A, AAAA, CNAME, MX, NS, TXT) compare every authoritative nameserver with Cloudflare 1.1.1.1, with remaining TTL and propagated or not_yet for your expected value. Up to 500 domains. Empty input = free demo.

- **URL**: https://apify.com/ucchiii/dns-propagation-checker.md
- **Developed by:** [Actor Factory](https://apify.com/ucchiii) (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

from $0.35 / 1,000 comparisons

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

**Has my DNS change spread? Compare every authoritative nameserver with Cloudflare for A, AAAA, CNAME, MX, NS and TXT**

**For anyone who just changed a DNS record or moved a domain to new nameservers and keeps asking "is it live yet?":** web and IT teams doing a migration or go-live, agencies handling client domains, email admins who changed MX / SPF, and anyone running a nameserver change. Give this Actor up to 500 domains and get **one row per domain and record type: what each authoritative nameserver says, what Cloudflare 1.1.1.1 says, whether they agree, and how many seconds Cloudflare will still serve the old answer**. Type in the value you expect and the row says **`propagated`** or **`not_yet`**.
No scraping, no proxies, no API keys. It asks the zone's own nameservers directly and Cloudflare's public DNS-over-HTTPS JSON API.

**Try it free: leave input empty and press Start** (example.com, four record types, not charged, rows carry `_demo: true`).

### Sample output

(Made-up placeholder values that show the shape of the rows.)

| domain | recordType | status | consistent | expectedStatus | answers (Cloudflare) | remainingTtl | outliers |
|---|---|---|---|---|---|---|---|
| example.com | A | compared | true | propagated | 203.0.113.7 | 212 | |
| example.com | MX | compared | false | | 10 mail.example.com | 3120 | ns2.example.net |

### Price

**$0.50 per 1,000 comparisons** ($0.0005 each). One comparison is one domain and one record type, so 100 domains with 3 types cost $0.15. You pay only for rows that were really compared: **Cloudflare and at least one authoritative nameserver answered**. Rows where only one source answered, failed lookups, names that do not exist, invalid input and the demo are free. Set a maximum charge per run to cap spend; the Actor stops cleanly when it is reached.
On the Apify Free plan, the $5 of monthly platform credit covers about **10,000 comparisons** a month.

### What it does

- **Finds the zone's nameservers itself.** It asks Cloudflare for the NS records of the name (walking up to the parent for a subdomain such as `www.example.com`), resolves each nameserver's address (up to 8 nameservers) and queries every one directly with recursion off, so you see what the zone really publishes, not a cache.
- **UDP first, TCP when needed.** A nameserver is asked over UDP (two tries with a pause); if that fails or the answer is truncated, TCP is used. If neither works that server's entry is `status: error` with the reason (for example `udp_timeout+tcp_ConnectionRefusedError`) and the run goes on.
- **Compares like with like.** Answers are normalized (lower case, no trailing dot, IPv6 shortened, TXT strings of one record joined, MX as `priority host`) and compared as sets, so a different order is not a difference.
- **Which server is behind.** `consistent` is true only when every source that answered gave the same set. When it is false, `outliers` lists the servers that differ from the most common answer; `matchesCloudflare` tells you whether Cloudflare still has an older cached answer.
- **Remaining TTL.** `remainingTtl` is what Cloudflare still has in its cache (it counts down; at 0 Cloudflare asks the nameservers again). `authoritativeTtl` is the TTL the zone publishes.
- **Expected value.** Give `expectedValue` (and `expectedRecordType`, default the first type) and that row gets `expectedStatus`: `propagated` (every source has it), `not_yet` (a source still answers something else, including NXDOMAIN) or `unknown` (a server could not be asked, so spread cannot be confirmed).
- **Messy input is fine:** `https://WWW.Example.com/page?x=1` becomes `www.example.com`, internationalized names become punycode, duplicates are removed, typos come back as an `invalid_input` row (free).

### Input example

```json
{
  "domains": ["example.com", "www.example.com"],
  "recordTypes": ["A", "MX", "TXT"],
  "expectedValue": "203.0.113.7",
  "expectedRecordType": "A",
  "concurrency": 3
}
```

### Output

One row per domain and record type.

```json
{
  "domain": "example.com",
  "zone": "example.com",
  "recordType": "A",
  "status": "compared",
  "consistent": false,
  "authoritativeConsistent": true,
  "matchesCloudflare": false,
  "answers": ["198.51.100.20"],
  "servers": [
    {"server": "cloudflare-dns.com", "address": "1.1.1.1", "via": "doh", "status": "ok", "answers": ["198.51.100.20"], "ttl": 212, "error": null},
    {"server": "ns1.example.net", "address": "192.0.2.1", "via": "udp", "status": "ok", "answers": ["203.0.113.7"], "ttl": 3600, "error": null},
    {"server": "ns2.example.net", "address": "192.0.2.2", "via": "udp", "status": "ok", "answers": ["203.0.113.7"], "ttl": 3600, "error": null}
  ],
  "outliers": ["cloudflare-dns.com"],
  "remainingTtl": 212,
  "authoritativeTtl": 3600,
  "expectedValue": "203.0.113.7",
  "expectedStatus": "not_yet",
  "error": null,
  "checkedAt": "2026-11-14T09:00:00Z"
}
```

| status | meaning | charged |
|---|---|---|
| `compared` | Cloudflare and at least one nameserver answered (individual servers may still show `error`) | yes |
| `partial` | only one source answered, for example the nameservers could not be reached from the platform; `servers` shows the reasons | no |
| `nxdomain` | the name does not exist and no zone was found | no |
| `error` | no source answered, or Cloudflare could not give the nameservers (see `error`) | no |
| `invalid_input` | the entry is not a domain name | no |

A nameserver that answers "no such name" (NXDOMAIN) counts as an answer, so a record that exists on some servers and not on others shows up as `consistent: false`. A server that answers without being authoritative for the zone and without records is reported as `error: not_authoritative`. The record `SUMMARY` in the key-value store counts each status, consistent and inconsistent rows, propagated and not-yet rows, charged comparisons, and the DoH questions and direct queries sent.

### Use cases

- Wait for a new A, CNAME or MX record to be live everywhere before you switch traffic or announce a launch
- After moving a domain to new nameservers, see whether the old and new servers still disagree
- Find the one nameserver of several that still has the old record
- Check an email setup change (MX, SPF / verification TXT) before testing delivery
- Run it on a schedule against a list of client domains during a migration window

### Limits (cannot be raised by input)

- 500 domains per run (extra names are ignored with a log warning); up to 10 in parallel (default 3)
- Up to 8 nameservers per zone, one address each (the first one the name resolves to)
- At most 10 requests to Cloudflare at a time, at least 0.02 s apart; at most 3 parallel queries to one nameserver address, at least 0.05 s apart
- Cloudflare requests have a timeout (default 10 s, max 60 s) and up to 3 tries; nameserver queries wait at most 5 s per try, two UDP tries and two TCP tries
- Cloudflare is the only public resolver used. Other resolvers around the world (ISP resolvers, other public DNS) may still hold older answers than Cloudflare does; "propagated" here means: the zone's nameservers and Cloudflare agree

### FAQ

**Can Apify reach nameservers on port 53?** Outbound UDP/TCP port 53 from the platform was not verified when this Actor was built. If it is blocked, every nameserver entry shows the reason, the row is `partial` and is not charged, and you still get Cloudflare's answer and TTL.

**Why is Cloudflare different from the nameservers?** Cloudflare caches answers for the record's TTL. After a change it keeps the old answer until `remainingTtl` runs out. That is exactly the delay other resolvers have, which is why this is the number to watch.

**Which of the six record types should I pick?** Only the ones you changed: each type is one comparison. TXT covers SPF, DKIM and verification records.

**Does it check DNSSEC or other resolvers?** No. It compares the zone's nameservers with Cloudflare for six record types.

If this Actor saved you time, a rating on the Store helps others find it.

### More tools from the same developer

- [DNS Lookup](https://apify.com/ucchiii/dns-records-lookup) — bulk DNS lookup: A, AAAA, MX, NS, TXT, SPF and DMARC per domain
- [Domain WHOIS & DNS Lookup](https://apify.com/ucchiii/domain-whois) — bulk WHOIS (RDAP) and DNS lookup: registrar, expiry, days left, A/MX/NS, no personal data
- [SSL Certificate Expiry Checker](https://apify.com/ucchiii/ssl-certificate-checker) — SSL/TLS certificate expiry dates, issuer and validity for many hosts, soonest first
- [Redirect Checker](https://apify.com/ucchiii/redirect-checker) — full redirect chain for each URL, hop by hop, with loop detection

# Actor input Schema

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

Domains like 'example.com' or 'www.example.com' (URLs are accepted; only the host name is used). For a subdomain the nameservers of its zone are asked. E-mail addresses are not accepted. Up to 500 per run (extra ones are skipped); duplicates are removed. Entries that are not domains get an invalid_input row (free). Leave empty for a free demo (not charged).

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

Which record types to compare for every domain; each type is one row and one comparison. Default: all six. TXT strings of one record are joined; MX is shown as 'priority host'.

## `expectedValue` (type: `string`):

Optional. The value you changed the record to, e.g. '203.0.113.7', 'mail.example.com' or '10 mail.example.com' (MX without a priority matches any priority), or a TXT value. The row of the expected record type gets expectedStatus: propagated when every source answers with it, not_yet when any source still answers something else, unknown when a source could not be asked. Case, a trailing dot and TXT quotes do not matter (TXT text itself is compared exactly).

## `expectedRecordType` (type: `string`):

Which record type the expected value belongs to. Default: the first record type in the list above. The type is added to the comparison if it is not selected.

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

Timeout for each Cloudflare request, in seconds (nameserver queries wait at most 5 seconds per try). Failed requests are retried with a growing pause: Cloudflare up to 3 times, nameservers twice over UDP and twice over TCP. Allowed range 1 to 60 (default 10).

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

How many domains are checked in parallel. Allowed range 1 to 10 (default 3). At most 10 requests go to Cloudflare at a time (0.02 s apart) and at most 3 at a time to any one nameserver address (0.05 s apart).

## Actor input object example

```json
{
  "domains": [
    "example.com"
  ],
  "recordTypes": [
    "A",
    "MX",
    "TXT"
  ],
  "timeoutSecs": 10,
  "concurrency": 3
}
```

# Actor output Schema

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

One row per domain and record type: the answer of every authoritative nameserver and of Cloudflare, consistent true or false, remaining TTL, and propagated or not_yet when you gave an expected value.

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

Record SUMMARY: comparisons, partial, not found, failed, consistent and inconsistent counts, propagated and not-yet counts, charged comparisons, DoH questions and direct queries sent.

# 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"
    ],
    "recordTypes": [
        "A",
        "MX",
        "TXT"
    ]
};

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

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

```

## MCP server setup

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