DNS Record Validator

Validate SPF, DKIM and DMARC TXT records with a plain-English breakdown.

Updated:

100% client-side

DNS TXT record

0 characters

Breakdown

Unknown
—

What is DNS Record Validator?

SPF, DKIM and DMARC are special DNS TXT records that tell email providers a message really came from your domain and wasn't forged — get one wrong and your legitimate emails can land in spam, or your domain can be spoofed by attackers. DNS Record Validator reads a single SPF, DKIM or DMARC record and breaks it down into a plain-English explanation of what each part does, so you can catch a misconfiguration before it causes deliverability problems.

How to use DNS Record Validator

  1. Paste your DNS TXT record into the DNS TXT record field, or click SPF example, DKIM example or DMARC example to try a sample.
  2. Check the badge above the Breakdown panel — it auto-detects whether the record is SPF, DKIM or DMARC.
  3. Read the Breakdown panel for a plain-English explanation of each mechanism or tag in the record.
  4. Fix any issue flagged in the summary, then re-paste the corrected record to validate it again.

How SPF, DKIM and DMARC validation works

These three DNS TXT records work together as layered email-authentication controls. SPF (RFC 7208) lists which servers are allowed to send mail for a domain; DKIM (RFC 6376) lets a server cryptographically sign outgoing mail; DMARC (RFC 7489) tells receivers what to do when SPF or DKIM fail, and where to send reports about it.

For example records, the SPF 10-lookup limit and a safe DMARC rollout, read the guide SPF, DKIM and DMARC Explained with Example Records.

SPF evaluation has a hard limit worth watching closely — RFC 7208 caps the DNS lookups a receiver will perform at 10, and each include, a, mx, ptr and exists mechanism (plus a redirect modifier) consumes one:

v=spf1 ip4:192.168.0.0/24 include:_spf.google.com include:mailgun.org ~all

ip4:192.168.0.0/24   → no lookup (IP ranges are free)
include:_spf.google.com → 1 lookup
include:mailgun.org     → 1 lookup
~all                     → no lookup (catch-all, softfail)

Total: 2 of 10 DNS lookups used

This tool tokenizes the record with plain string parsing (no external library) and applies these RFC rules directly — no data ever leaves your browser.

Examples

1. An SPF record that grew one service too many. Every email service you add usually means another include:. Nine includes plus mx and a make 11 lookups, and receivers return a permanent error (permerror) for the whole record. The breakdown marks each mechanism with its cost:

v=spf1 include:_spf.google.com include:spf.protection.outlook.com include:sendgrid.net include:mailgun.org include:servers.mcsv.net include:_spf.salesforce.com include:zendesk.com mx a include:amazonses.com include:spf.mandrillapp.com ~all

PASS (+)      include:_spf.google.com   1 DNS lookup
…             (9 more include/mx/a rows, 1 DNS lookup each)
PASS (+)      include:spf.mandrillapp.com   1 DNS lookup
SOFTFAIL (~)  ~all                      no DNS lookup

11 of 10 DNS lookups used — exceeds the RFC 7208 limit

To get back under 10, drop services you no longer use, or replace an include with the provider's published ranges as ip4:/ip6: mechanisms, which cost no lookups. The IP subnet calculator and the IPv6 subnet calculator show exactly which addresses a CIDR range such as ip4:203.0.113.0/24 covers.

2. Rolling out DMARC gradually. A common step after monitoring with p=none: quarantine only a quarter of failing mail while the aggregate reports confirm nothing legitimate is failing:

v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc@example.com

Policy (p=) = quarantine
  Deliver mail that fails DMARC to the recipient’s spam/junk folder.
Enforcement percentage (pct=) = 25
  Only 25% of mail that would otherwise fail is subjected to the policy above — the rest is treated as if the policy were "none."
Aggregate reports (rua=)
  Daily aggregate DMARC reports are sent to mailto:dmarc@example.com.

Reference: RFC 7208 (SPF).

Frequently asked questions

What DNS record types does this tool support?

SPF (RFC 7208), DKIM (RFC 6376) and DMARC (RFC 7489) TXT records — the type is auto-detected from the record's v= prefix.

What is the SPF 10-lookup limit?

RFC 7208 caps the DNS lookups a receiving server performs while evaluating an SPF record at 10, counting each include, a, mx, ptr and exists mechanism plus any redirect modifier. Exceeding it makes the whole check return a permerror, failing all your mail.

What's the difference between DMARC's none, quarantine and reject policies?

none only monitors, taking no action; quarantine delivers failing mail to spam/junk; reject rejects it outright at the receiving server.

Is my DNS record data safe to paste here?

Yes. All parsing happens in your browser with plain JavaScript string parsing; nothing is ever sent to a server.