DMARC Check API
free/v1/security/dmarcDiscovers current RFC9989 DMARC policy with the bounded DNS Tree Walk and returns published policy, effective inherited/testing policy, record provenance and DNS availability. Publishing a policy does not establish actual SPF/DKIM alignment or receiver disposition.
What It Does
Queries an exact policy first, otherwise walks ancestors with the eight-query deep-label shortcut through the TLD. Ordinary records do not stop organization discovery; psd=n/y/u and duplicate-discard rules control selection. Existing/nonexistent subdomains use sp/np inheritance where applicable; author-domain existence is checked separately from absence of _dmarc. Testing steps reject down to quarantine and quarantine to none. Missing p defaults to none, version is case-sensitive, and historic pct is compatibility metadata. Unknown DNS/existence evidence remains unavailable and cannot populate the normal policy cache.
Why It's Useful
Use source-scoped configuration evidence to investigate policy gaps and compare equivalent observations. This diagnostic does not prove actual message authentication, provider disposition or a complete sender inventory; review standards profile, coverage and limitations before acting.
Use Cases
Email Security Maturity Assessment
Evaluate organization's email security maturity by checking DMARC enforcement level. Track progression from p=none (monitoring) → p=quarantine → p=reject (full enforcement).
Benchmark email security posture and plan enforcement progression.
DMARC Enforcement Preparation
Before moving from p=none to p=reject, verify SPF and DKIM alignment is working correctly by checking alignment mode and reviewing aggregate report URIs.
Safely progress toward full DMARC enforcement without blocking legitimate mail.
Reporting Configuration Audit
Verify DMARC aggregate (rua) and forensic (ruf) reports are configured and sent to monitored addresses. Check report interval settings.
Ensure visibility into email authentication failures across the organization.
Subdomain Policy Review
Check if subdomain policy (sp=) is set independently from the main domain policy. Subdomains without their own DMARC record inherit the organizational domain policy.
Prevent subdomain spoofing by ensuring proper policy inheritance.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | The domain to check DMARC policy forExample: google.com |
Response Fields
Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.
| Field | Type | Description |
|---|---|---|
standard | string | RFC9989 current policy profile; historic pct is retained only as compatibility metadata |
assessment | object | Complete, provisional or unavailable policy evidence; not a message authentication result |
dns_error | string | null | Policy, existence or reporting DNS uncertainty; not conclusive absence |
discovery | object | Queried names, eight-query bounds, organization/PSD selection and discarded/unavailable observations |
dmarc.published_policy | string | null | Published p value at the selected policy record before inheritance/testing |
dmarc.effective_policy | string | null | Requested current handling after sp/np and testing; null when evidence cannot resolve it |
domain | string | The queried domain |
dmarc.found | boolean | Whether a DMARC record exists |
dmarc.record | string | Raw DMARC record value |
dmarc.policy | string | Main policy: none, quarantine, or reject |
dmarc.subdomain_policy | string | Subdomain policy (sp= tag), defaults to main policy |
dmarc.percentage | number | Percentage of messages the policy applies to (pct= tag, default 100) |
dmarc.alignment.dkim | string | DKIM alignment mode: r (relaxed) or s (strict) |
dmarc.alignment.spf | string | SPF alignment mode: r (relaxed) or s (strict) |
dmarc.reporting.aggregate_uris | array | Aggregate report destinations (rua= tag) |
dmarc.reporting.forensic_uris | array | Forensic report destinations (ruf= tag) |
dmarc.reporting.interval_seconds | number | Report interval in seconds (ri= tag, default 86400) |
dmarc.policy_description | string | Human-readable policy description |
dmarc.external_authorization | array | Per-URI authorization results for rua/ruf destinations on third-party domains (RFC 7489 §7.1). Each entry: { uri, tag (rua/ruf), destination_domain, authorized (boolean), checked_record, query_error }. MSPs and agencies can use this to detect when a vendor revokes their delegation |
dmarc.dnssec_validated | boolean | Whether the DMARC TXT lookup carried the DNSSEC AD bit |
dmarc.dmarcbis | object | RFC9989 current tags (published May 2026; compatibility field name dmarcbis). { np: non-existent-subdomain policy, psd: Public Suffix Domain marker y/n/u, testing: binary testing flag, ready: true when the record uses only DMARCbis-compatible tags — no pct/ri/rf } |
score | number | Security score 0–100 |
grade | string | Letter grade A–F |
recommendations | array | Policy and configuration improvement recommendations |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/security/dmarc?domain=google.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/security/dmarc?domain=google.com",
{
"method": "GET",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
if (!response.ok) {
throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/security/dmarc?domain=google.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full DMARC Check guide
Learn the concepts, choose a practical workflow, and interpret the observations from DMARC Check before acting on them. Run supported checks via MCP or through REST.
Read the guide →Related Endpoints
External References
Learn more about the standards and protocols behind this endpoint.