# Monitor Domains For DNS Changes

**Use case:** 

Remembers twenty fields per domain and returns only the ones where something moved: a new MX, a weakened DMARC, changed nameservers, a new registrar, a closer expiry date. Every row carries change_type and changed_fields. Unchanged domains are not written, so you do not pay for them twice.

## Input

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "stripe.com",
    "shopify.com",
    "cloudflare.com",
    "notion.so",
    "figma.com",
    "vercel.com",
    "linear.app",
    "openai.com",
    "bosch.de",
    "zalando.de",
    "booking.com",
    "spotify.com",
    "adobe.com",
    "salesforce.com",
    "hubspot.com",
    "atlassian.com",
    "slack.com",
    "zoom.us"
  ],
  "maxItems": 0,
  "includeRegistration": true,
  "includeDkim": true,
  "dkimSelectorSet": "common",
  "dkimSelectors": [],
  "includeDnssec": true,
  "includeTlsCertificate": true,
  "includeReverseDns": false,
  "requestTimeoutSecs": 8,
  "onlyChanged": true,
  "emitUnchanged": false,
  "watchAddressRecords": false,
  "onlyWithFindings": false,
  "maxPostureScore": 0,
  "minSeverity": "any",
  "findingCodes": [],
  "onlySpoofable": false,
  "expiringWithinDays": 0,
  "onlyResolved": false,
  "compactOutput": false,
  "excludeEmptyFields": false
}
```

## Output

```json
{
  "domain": {
    "label": "domain",
    "format": "string"
  },
  "posture_score": {
    "label": "posture_score",
    "format": "integer"
  },
  "posture_grade": {
    "label": "posture_grade",
    "format": "string"
  },
  "spoofable": {
    "label": "spoofable",
    "format": "boolean"
  },
  "highest_severity": {
    "label": "highest_severity",
    "format": "string"
  },
  "finding_count": {
    "label": "finding_count",
    "format": "integer"
  },
  "finding_codes": {
    "label": "finding_codes",
    "format": "array"
  },
  "mail_provider": {
    "label": "mail_provider",
    "format": "string"
  },
  "dns_provider": {
    "label": "dns_provider",
    "format": "string"
  },
  "spf_record": {
    "label": "spf_record",
    "format": "string"
  },
  "spf_dns_lookups": {
    "label": "spf_dns_lookups",
    "format": "integer"
  },
  "spf_lookup_limit_exceeded": {
    "label": "spf_lookup_limit_exceeded",
    "format": "boolean"
  },
  "spf_all_qualifier": {
    "label": "spf_all_qualifier",
    "format": "string"
  },
  "dmarc_policy": {
    "label": "dmarc_policy",
    "format": "string"
  },
  "dmarc_subdomain_policy": {
    "label": "dmarc_subdomain_policy",
    "format": "string"
  },
  "dmarc_percent": {
    "label": "dmarc_percent",
    "format": "integer"
  },
  "dkim_selector_count": {
    "label": "dkim_selector_count",
    "format": "integer"
  },
  "dkim_selectors_found": {
    "label": "dkim_selectors_found",
    "format": "array"
  },
  "dkim_wildcard": {
    "label": "dkim_wildcard",
    "format": "boolean"
  },
  "dnssec_signed": {
    "label": "dnssec_signed",
    "format": "boolean"
  },
  "mta_sts_mode": {
    "label": "mta_sts_mode",
    "format": "string"
  },
  "registrar": {
    "label": "registrar",
    "format": "string"
  },
  "created_at": {
    "label": "created_at",
    "format": "string"
  },
  "expires_at": {
    "label": "expires_at",
    "format": "string"
  },
  "days_until_expiry": {
    "label": "days_until_expiry",
    "format": "integer"
  },
  "transfer_locked": {
    "label": "transfer_locked",
    "format": "boolean"
  },
  "tls_issuer": {
    "label": "tls_issuer",
    "format": "string"
  },
  "tls_not_after": {
    "label": "tls_not_after",
    "format": "string"
  },
  "tls_days_until_expiry": {
    "label": "tls_days_until_expiry",
    "format": "integer"
  },
  "tls_error": {
    "label": "tls_error",
    "format": "string"
  },
  "mx_hosts": {
    "label": "mx_hosts",
    "format": "array"
  },
  "ns_records": {
    "label": "ns_records",
    "format": "array"
  },
  "a_records": {
    "label": "a_records",
    "format": "array"
  },
  "change_type": {
    "label": "change_type",
    "format": "string"
  },
  "changed_fields": {
    "label": "changed_fields",
    "format": "array"
  },
  "resolved": {
    "label": "resolved",
    "format": "boolean"
  },
  "queried_at": {
    "label": "queried_at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [WHOIS Lookup, DNS Records Scraper - DMARC, SPF, DKIM Checker](https://apify.com/snow_leo_data/whois-dns-lookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/snow_leo_data/whois-dns-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/snow_leo_data/whois-dns-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`).
