# Bulk DNS Records Lookup & Propagation Checker (`klyve1/dns-records-lookup`) Actor

Look up A, AAAA, MX, NS, TXT, CNAME, CAA, SOA and SRV records for any list of domains, read SPF and DMARC, and compare answers across Google, Cloudflare and Quad9 to check DNS propagation.

- **URL**: https://apify.com/klyve1/dns-records-lookup.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (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 $1.00 / 1,000 domain looked ups

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

## Bulk DNS Records Lookup & Propagation Checker

Look up the DNS records of hundreds of domains in one run: **A, AAAA, CNAME, MX, NS, TXT, CAA, SOA, SRV and PTR**, plus the parsed **SPF** and **DMARC** policy. Ask several public resolvers at once (Google, Cloudflare, Quad9, OpenDNS or your own name server) and see instantly whether they all return the same answers, which is the quickest way to check DNS propagation after a change.

### Who uses it

- **Sysadmins and DevOps**: verify a migration, a new MX or a TTL change across resolvers.
- **Email deliverability teams**: audit SPF, DMARC and MX of client or prospect domains in bulk.
- **Security and IT audits**: list CAA, NS and SOA records of a whole domain portfolio.
- **Lead enrichment**: find which mail provider (Google, Microsoft, ...) and DNS host a company uses.

### Example output

```json
{
  "domain": "wikipedia.org",
  "resolvers": ["google", "cloudflare"],
  "a": ["185.15.59.224"],
  "aaaa": ["2a02:ec80:300:ed1a::1"],
  "mx": ["10 mx-in1001.wikimedia.org", "10 mx-in2001.wikimedia.org"],
  "ns": ["ns0.wikimedia.org", "ns1.wikimedia.org", "ns2.wikimedia.org"],
  "txt": ["v=spf1 include:_cidrs.wikimedia.org ~all", "..."],
  "caa": ["0 iodef \"mailto:dns-admin@wikimedia.org\"", "0 issue \"digicert.com\"", "0 issue \"letsencrypt.org\""],
  "soa": ["ns0.wikimedia.org hostmaster.wikimedia.org 2026112017 43200 7200 1209600 3600"],
  "aTtl": 122,
  "soaSerial": 2026112017,
  "spf": "v=spf1 include:_cidrs.wikimedia.org ~all",
  "dmarc": "v=DMARC1; p=reject; rua=mailto:dmarc-rua@wikimedia.org;",
  "dmarcPolicy": "reject",
  "hasIpv6": true,
  "allResolversAgree": true,
  "differences": {}
}
```

When resolvers disagree, `differences` shows each resolver's answer per record type.

### Input

| Field | Description |
|---|---|
| Domains or hostnames | Domains, subdomains or URLs (cleaned automatically). IPv4 addresses for PTR. |
| Record types | Any of A, AAAA, CNAME, MX, NS, TXT, CAA, SOA, SRV, PTR. |
| Public resolvers | google, cloudflare, quad9, opendns, system. Two or more = propagation check. |
| Custom resolver IPs | Extra name servers to compare, for example your authoritative server. |
| Parallel domains / timeout | Speed settings. |

### Pricing

Pay per result: **$0.001 per domain** that returns records. Domains with no records or failed lookups are free.

### Good to know

- Big CDNs (CloudFront, Akamai, ...) return different IP addresses depending on the resolver location. A difference on A or AAAA for such sites is normal, not a propagation problem.
- Only public DNS is queried. No website is visited.
- For registration data (registrar, creation and expiry dates), use our [Domain WHOIS & RDAP Lookup](https://apify.com/klyve1/domain-rdap-lookup).

# Actor input Schema

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

Domains, subdomains or full URLs, one per line (https:// and paths are removed). For PTR, give an IPv4 address.

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

DNS record types to query. SPF and DMARC are always read from TXT records.

## `resolvers` (type: `array`):

DNS resolvers to ask. The first one fills the main columns. With two or more, the Actor compares the answers (propagation check) and lists the differences.

## `customResolvers` (type: `array`):

Extra DNS server IP addresses to compare, for example your authoritative name server.

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

How many domains are looked up at the same time.

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

Time to wait for each DNS answer before giving up.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "wikipedia.org"
  ],
  "recordTypes": [
    "A",
    "AAAA",
    "CNAME",
    "MX",
    "NS",
    "TXT",
    "CAA",
    "SOA"
  ],
  "resolvers": [
    "google"
  ],
  "concurrency": 5,
  "timeoutSecs": 5
}
```

# Actor output Schema

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

All rows produced by the run.

# 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": [
        "apify.com",
        "github.com",
        "wikipedia.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/dns-records-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": [
        "apify.com",
        "github.com",
        "wikipedia.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("klyve1/dns-records-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": [
    "apify.com",
    "github.com",
    "wikipedia.org"
  ]
}' |
apify call klyve1/dns-records-lookup --silent --output-dataset

```

## MCP server setup

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