# Email DNS records - MX, SPF and DMARC

**Use case:** 

The DNS records that decide whether mail from a domain is accepted: MX for where it goes, SPF for who may send it and DMARC for what to do when a check fails. A domain missing DMARC is reported as missing rather than as an error.

## Input

```json
{
  "domains": [
    "github.com",
    "stripe.com",
    "hey.com",
    "fastmail.com",
    "protonmail.com",
    "zoho.com"
  ],
  "checkRdap": false,
  "checkTls": false,
  "timeoutSecs": 20,
  "maxRetries": 3
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "ok": {
    "label": "Answered",
    "format": "boolean"
  },
  "registered": {
    "label": "Registered",
    "format": "boolean"
  },
  "rdapDomain": {
    "label": "Registration is for",
    "format": "string"
  },
  "registrationLookupError": {
    "label": "Why registration is missing",
    "format": "string"
  },
  "registrar": {
    "label": "Registrar",
    "format": "string"
  },
  "registeredOn": {
    "label": "Registered on",
    "format": "string"
  },
  "domainAgeDays": {
    "label": "Age (days)",
    "format": "integer"
  },
  "expiresOn": {
    "label": "Expires on",
    "format": "string"
  },
  "daysUntilExpiry": {
    "label": "Expires in (days)",
    "format": "integer"
  },
  "dnsProvider": {
    "label": "DNS provider",
    "format": "string"
  },
  "mailProvider": {
    "label": "Mail provider",
    "format": "string"
  },
  "hasMx": {
    "label": "Has MX",
    "format": "boolean"
  },
  "spfStrictness": {
    "label": "SPF",
    "format": "string"
  },
  "dmarcPolicy": {
    "label": "DMARC",
    "format": "string"
  },
  "spoofProtection": {
    "label": "Spoof protection",
    "format": "string"
  },
  "tlsIssuer": {
    "label": "TLS issuer",
    "format": "string"
  },
  "tlsDaysUntilExpiry": {
    "label": "TLS expires in (days)",
    "format": "integer"
  },
  "tlsExpired": {
    "label": "TLS expired",
    "format": "boolean"
  },
  "tlsMatchesDomain": {
    "label": "TLS covers domain",
    "format": "boolean"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Bulk WHOIS & DNS Checker - SSL Expiry, Domain, MX, SPF, DMARC](https://apify.com/neverempty/domain-lookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/domain-lookup.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/neverempty/domain-lookup.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`).
