# Find SPF records over the 10 DNS lookup limit

**Use case:** 

An SPF record that needs more than 10 DNS lookups fails with permerror and hurts deliverability. This task counts lookups recursively through every include and redirect, flags void lookups, +all and multiple SPF records, and shows the full SPF breakdown per domain.

## Input

```json
{
  "domains": [
    "microsoft.com",
    "github.com",
    "google.com"
  ],
  "checkDkim": true,
  "dkimSelectors": [
    "google",
    "selector1",
    "selector2",
    "default",
    "k1",
    "s1",
    "s2"
  ],
  "maxItems": 0,
  "maxConcurrency": 20,
  "dnsTimeoutSecs": 5,
  "dnsServers": [
    "1.1.1.1",
    "8.8.8.8"
  ]
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "spfRecord": {
    "label": "SPF record",
    "format": "string"
  },
  "spfValid": {
    "label": "Valid",
    "format": "boolean"
  },
  "spfAllQualifier": {
    "label": "all",
    "format": "string"
  },
  "spfLookups": {
    "label": "Lookups",
    "format": "integer"
  },
  "spfVoidLookups": {
    "label": "Void",
    "format": "integer"
  },
  "spfIncludes": {
    "label": "Includes",
    "format": "array"
  },
  "issues": {
    "label": "Issues",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The DMARC & SPF Checker: Bulk DKIM, MX & Deliverability Audit Actor is ready to run with the inputs already set for "Find SPF records over the 10 DNS lookup limit". [Sign up or log in](https://console.apify.com/create-task-from-example/bDOd4aSL1Z3ebO98s) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find SPF records over the 10 DNS lookup limit" task

The DMARC & SPF Checker: Bulk DKIM, MX & Deliverability Audit Actor will start running based on the input automatically. You can also change all the input fields, like domains, websites or e-mail addresses, look for dkim keys, and more, to match your specific use case.

### 3. Receive the "Find SPF records over the 10 DNS lookup limit" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as domain, SPF record, valid, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Find SPF records over the 10 DNS lookup limit" task via API](https://apify.com/quanta1810/dmarc-spf-checker.md).

## About this Actor

This example demonstrates how to use [DMARC & SPF Checker: Bulk DKIM, MX & Deliverability Audit](https://apify.com/quanta1810/dmarc-spf-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/quanta1810/dmarc-spf-checker.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/quanta1810/dmarc-spf-checker.md

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`).
