{"api":{"id":"api_1083a63bca94d5b8fb31f135","slug":"dns-records","name":"DNS Records & Email Security API","description":"DNS records for a list of domains (A, AAAA, MX, TXT, NS, CNAME, CAA, SOA) with TTL, the SPF and DMARC policies parsed into columns, the mail provider behind each MX host, site-verification tags and whether DNSSEC validated.","kind":"ready_made","visibility":"public","domain":"dns.google","source_url":"https://dns.google/resolve","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":10,"created_at":"2026-12-06T03:57:27.636Z","updated_at":"2026-12-06T03:57:27.636Z","runnable":true},"version":"1.0","contract_hash":"ff3c05051fa0869680768d3896cf4c09ae19e7047c5e5826602ca8757586fb93","fields":[{"name":"domain","type":"string","description":"The domain you asked for.","required":true,"coverage":1,"example":"github.com"},{"name":"record_type","type":"string","description":"Record type: A, AAAA, MX, TXT, NS, CNAME, CAA or SOA.","required":false,"coverage":1,"example":"MX"},{"name":"name","type":"string","description":"The name the record sits on (the domain, or _dmarc.domain for DMARC).","required":false,"coverage":1,"example":"github.com"},{"name":"value","type":"string","description":"The record's content. MX records start with their priority; long TXT strings are joined.","required":false,"coverage":1,"example":"0 github-com.mail.protection.outlook.com"},{"name":"ttl","type":"integer","description":"Seconds the answer may still be cached.","required":false,"coverage":1,"example":164},{"name":"spf","type":"string","description":"How an SPF policy ends: -all, ~all, ?all, +all or redirect=host. Empty on other records.","required":false,"coverage":0.2,"example":"~all"},{"name":"dmarc_policy","type":"string","description":"The DMARC policy (none, quarantine or reject) on a DMARC record.","required":false,"coverage":0.2,"example":"quarantine"},{"name":"mx_provider","type":"string","description":"Mail provider recognised from an MX host, such as Google Workspace or Microsoft 365.","required":false,"coverage":0.2,"example":"Microsoft 365"},{"name":"verification_tokens","type":"array","description":"Kinds of site-verification record found in a TXT value, such as google-site-verification.","required":false,"coverage":0.4,"example":["facebook-domain-verification"]},{"name":"dnssec_validated","type":"boolean","description":"True when the answer was validated with DNSSEC.","required":false,"coverage":1,"example":false}],"inputs":[{"name":"domains","type":"array","description":"Domain names to look up, such as stripe.com. A link is reduced to its domain name. Up to 500 per run.","example":["stripe.com"],"required":true},{"name":"record_types","type":"array","description":"Record types to look up: A, AAAA, MX, TXT, NS, CNAME, CAA or SOA. Defaults to A, MX, TXT and NS.","example":["MX","TXT","NS"]},{"name":"parse_email_auth","type":"boolean","description":"Read SPF and DMARC policies out of TXT records into their own fields (on by default).","default":true,"example":true}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"dmarc_policy":{"description":"The DMARC policy (none, quarantine or reject) on a DMARC record.","type":"string"},"dnssec_validated":{"description":"True when the answer was validated with DNSSEC.","type":"boolean"},"domain":{"description":"The domain you asked for.","type":"string"},"mx_provider":{"description":"Mail provider recognised from an MX host, such as Google Workspace or Microsoft 365.","type":"string"},"name":{"description":"The name the record sits on (the domain, or _dmarc.domain for DMARC).","type":"string"},"record_type":{"description":"Record type: A, AAAA, MX, TXT, NS, CNAME, CAA or SOA.","type":"string"},"spf":{"description":"How an SPF policy ends: -all, ~all, ?all, +all or redirect=host. Empty on other records.","type":"string"},"ttl":{"description":"Seconds the answer may still be cached.","type":"integer"},"value":{"description":"The record's content. MX records start with their priority; long TXT strings are joined.","type":"string"},"verification_tokens":{"description":"Kinds of site-verification record found in a TXT value, such as google-site-verification.","type":"array"}},"required":["domain"],"title":"DNS Records & Email Security API","type":"object"},"samples":[{"domain":"github.com","record_type":"MX","name":"github.com","value":"0 github-com.mail.protection.outlook.com","ttl":164,"spf":null,"dmarc_policy":null,"mx_provider":"Microsoft 365","verification_tokens":[],"dnssec_validated":false},{"domain":"github.com","record_type":"TXT","name":"_dmarc.github.com","value":"v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:d•••@github.com; ruf=mailto:d•••@github.com; fo=1","ttl":164,"spf":null,"dmarc_policy":"quarantine","mx_provider":null,"verification_tokens":[],"dnssec_validated":false},{"domain":"github.com","record_type":"TXT","name":"github.com","value":"v=spf1 ip4:192.30.252.0/22 ip4:172.170.10.240/28 ip4:40.78.162.192/28 ip4:172.170.3.48/28 include:spf.protection.outlook.com include:_netblocks.google.com include:_netblocks2.google.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net…","ttl":76,"spf":"~all","dmarc_policy":null,"mx_provider":null,"verification_tokens":[],"dnssec_validated":false}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"dmarc_policy":0.33,"dnssec_validated":1,"domain":1,"mx_provider":0.33,"name":1,"record_type":1,"spf":0.33,"ttl":1,"value":1,"verification_tokens":0},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.636Z","activated_at":"2026-12-06T03:57:27.636Z","active":true,"contract_hash":"ff3c05051fa0869680768d3896cf4c09ae19e7047c5e5826602ca8757586fb93","fields_count":10}]}