# Check SPF, DMARC and MX records for multiple domains

**Use case:** 

Collect public SPF, DMARC and MX records across a list of domains before an email-provider migration. Export a baseline for later comparison. Includes three public example domains; replace them with yours. Read-only DNS evidence, not a deliverability score or full authentication validation.

## Input

```json
{
  "domains": [
    "google.com",
    "example.com",
    "apify.com"
  ],
  "dkimSelectors": [],
  "previousSnapshots": {}
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "text"
  },
  "status": {
    "label": "Audit status",
    "format": "text"
  },
  "comparison": {
    "label": "Baseline comparison",
    "format": "text"
  },
  "changed": {
    "label": "Changed",
    "format": "boolean"
  },
  "spfRecordCount": {
    "label": "SPF records",
    "format": "number"
  },
  "dmarcPolicy": {
    "label": "Direct p tag summary",
    "format": "text"
  },
  "dkimChecked": {
    "label": "DKIM selectors checked",
    "format": "array"
  },
  "findings": {
    "label": "Observations to review",
    "format": "array"
  },
  "changes": {
    "label": "Added / removed values",
    "format": "array"
  },
  "checkedAt": {
    "label": "Checked at",
    "format": "date"
  },
  "sourceQueries": {
    "label": "DNS query evidence",
    "format": "array"
  },
  "fingerprint": {
    "label": "Snapshot SHA-256",
    "format": "text"
  },
  "snapshot": {
    "label": "Reusable snapshot",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [Email DNS Change Audit — SPF, DMARC, DKIM & MX](https://apify.com/iwins/email-dns-change-audit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/iwins/email-dns-change-audit.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/iwins/email-dns-change-audit.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`).
