# DNS Lookup & DNS Checker – All Records & Reverse DNS (`rowfeed/dns-lookup`) Actor

Look up the DNS of any list of domains or IPs in bulk: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records, reverse DNS (PTR), DNS host and mail provider, and whether Cloudflare, Google and AliDNS give the same answer. $0.50 per 1,000 lookups.

- **URL**: https://apify.com/rowfeed/dns-lookup.md
- **Developed by:** [Rowfeed](https://apify.com/rowfeed) (community)
- **Categories:** Developer tools, Lead generation, 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.50 / 1,000 domain or ip 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

## DNS Lookup & DNS Checker – All Records & Reverse DNS

Look up the DNS of one domain or 50,000 at once. Paste domains, subdomains, website URLs, email addresses or IP addresses, and for each one you get:

- **All common records**: A (IPv4), AAAA (IPv6), CNAME, MX, NS, TXT, SOA and CAA.
- **Reverse DNS (PTR)** for the domain's IPs. Paste an IP address on its own to get its reverse DNS.
- **DNS host** from the name servers (Cloudflare, Route 53, GoDaddy, Namecheap, Azure, Akamai, Wix, Shopify and many more), and the **mail provider** from the MX records (Google Workspace, Microsoft 365, Zoho, Proofpoint ...).
- **A three-resolver check**: Cloudflare, Google and AliDNS (Asia) are asked for the IPv4 addresses, and `resolvers_agree` tells you if they match. Useful after moving a site or changing name servers.
- A one-line **summary** in plain words.

Built for website and server migrations, lead lists (which host and mail provider a company uses), security reviews, domain portfolios and IT inventories.

### Example output row

```json
{"domain": "nrk.no", "input_type": "domain", "exists": true,
 "verdict": "2 IPv4, 2 IPv6; 1 MX; resolvers give different IPs (normal for CDNs and geo DNS; otherwise a recent change still spreading)",
 "a": ["23.33.119.11", "23.33.119.18"], "aaaa": ["2a02:26f0:32:5::17d6:6084", "2a02:26f0:32:5::17d6:609a"], "cname": null,
 "mx": ["1 smtp.google.com."], "ns": ["a1-251.akam.net", "a10-64.akam.net", "..."], "txt": ["v=spf1 mx a ip4:160.67.135.178 ... -all", "..."],
 "soa": "a1-251.akam.net. hostmaster.nrk.no. 2503052806 300 3600 1209600 60", "caa": [],
 "ptr": {"23.33.119.11": "a23-33-119-11.deploy.static.akamaitechnologies.com", "23.33.119.18": "a23-33-119-18.deploy.static.akamaitechnologies.com"},
 "dns_provider": "Akamai", "mail_provider": "Google Workspace", "resolvers_agree": false,
 "resolver_answers": {"cloudflare": ["23.33.119.11", "23.33.119.18"], "google": ["81.166.122.121", "81.166.122.56"], "alidns": ["84.208.13.48", "84.208.4.152"]}}
```

### How to use

1. Click **Try for free** (or **Start**) at the top of this page to open the input form.
2. Fill in **Domains or IP addresses**. Up to 50,000 domains, subdomains, website URLs, email addresses or IP addresses. The form comes with a working example, so you can also run it as it is.
3. Click **Start** and wait for the run to finish.
4. Download the results as Excel, CSV or JSON from the **Output** tab, or get them through the Apify API, a schedule or an integration (Make, Zapier, Google Sheets ...).

### Pricing

Pay per event, no subscription:

- **$0.0005 per domain or IP** looked up ($0.50 per 1,000).
- $0.001 per run start.

A domain that does not exist is still a result. Lookups the DNS does not answer, and text that is not a domain or IP, are free. Works on the free Apify plan.

### Input

| Field | What it does |
|---|---|
| `domains` | Domains, subdomains, URLs, email addresses or IPs (IPv4 and IPv6), up to 50,000. `info@shop.com` looks up `shop.com`; duplicates are looked up once. |

### Good to know

- Lookups go through public DNS-over-HTTPS (Cloudflare, with Google as fallback), so you see what the internet sees, not a cached local answer.
- Different IPs from the three resolvers are normal for sites behind a CDN or geo DNS, which hand out the nearest server. For a plain site it usually means a change that has not reached every resolver yet.
- A subdomain such as `www.example.com` has no name servers of its own, so `ns` is empty there; look up `example.com` for them.

### More tools from Rowfeed

- [DMARC Checker](https://apify.com/rowfeed/dmarc-checker) – SPF, DKIM and DMARC graded A-F for every domain.
- [WHOIS Lookup & DNS Checker](https://apify.com/rowfeed/domain-rdap-checker) – domain age, expiry, registrar and SSL expiry.
- [Website Technology Checker](https://apify.com/rowfeed/website-technology-checker) – which CMS, analytics and tools a website uses.
- [Robots.txt Checker](https://apify.com/rowfeed/robots-txt-checker) – which bots and pages a site blocks.
- [Domain Availability Checker](https://apify.com/rowfeed/domain-availability-checker) – which domains are free to register, one name in every TLD.

# Actor input Schema

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

Up to 50,000 domains, subdomains, website URLs, email addresses or IP addresses. An IP gets its reverse DNS (PTR). Duplicates are looked up once.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "nrk.no",
    "1.1.1.1"
  ]
}
```

# Actor output Schema

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

No description

# 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",
        "nrk.no",
        "1.1.1.1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfeed/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": [
        "apify.com",
        "github.com",
        "nrk.no",
        "1.1.1.1",
    ] }

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

```

## MCP server setup

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