Free DNS tool

SPF and DMARC checker

Read the SPF and DMARC records of any domain, count SPF lookups against the limit of 10, and see which DMARC policy receivers are told to apply.

Check SPF and DMARC records

The lookup runs in your browser; we do not receive what you type. Your browser asks a public DNS-over-HTTPS service (Cloudflare, with Google as a fallback), and nothing is stored.

Two records, two jobs

What this checker reads

SPF and DMARC are both short text (TXT) records in your domain's DNS. Together with DKIM they let a receiver tell real mail from mail that only pretends to come from you.

SPF

Lives on the domain itself. It lists the servers that may send email for the domain. The receiver checks the server that actually delivered the message against that list.

DMARC

Lives at _dmarc. in front of the domain. It tells receivers what to do with mail that fails, and where to send reports about it.

DKIM (not checked here)

A signature added by your email service. Its key sits under a selector that only the service knows, so it cannot be looked up from the domain name alone.

SPF in plain words

An SPF record is one line of text that starts with v=spf1, lists who may send, and ends with a rule for everyone else. For example:

v=spf1 ip4:203.0.113.10 include:_spf.mail-service.example -all

This says: the server at 203.0.113.10 may send, every server the mail service allows may send, and every other server fails. Each part of the line is called a mechanism.

TermWhat it meansCosts a DNS lookup?
ip4: / ip6:An IP address or range that may send.No
aThe servers in the domain's own A record may send.Yes
mxThe domain's mail servers (MX) may send.Yes
include:Also allow everything another domain's SPF allows. Used for email services.Yes, plus all lookups inside it
exists:An advanced test. Rarely needed.Yes
ptrOld and slow. The standard says not to use it.Yes
redirect=Use another domain's SPF record instead of this one.Yes
allThe rule for every server not matched above. Always last.No

The limit of 10 DNS lookups

The SPF standard (RFC 7208) allows at most 10 terms that need a DNS lookup while a receiver checks one message. Every include counts, and so does every lookup inside the record it includes. A record can look short and still go over the limit, because large email services include other records of their own.

Over the limit, SPF does not pass: it ends with an error called permerror. The checker follows each include and redirect, adds up the lookups, and warns you when you get close to 10. It also flags an include that points to a domain with no SPF record, which is an error too. To get back under the limit, remove services you no longer use, replace a and mx with fixed ip4 ranges where you can, and never use ptr.

-all, ~all, ?all and +all

The last term decides what happens to every server that is not on the list:

  • -all (fail): other servers are not allowed. The strictest setting.
  • ~all (soft fail): other servers are probably not allowed. Receivers accept the mail but trust it less. A common choice while you are still finding all your senders.
  • ?all (neutral): no opinion. It gives almost no protection.
  • +all (pass): every server in the world may send as you. Never use it.

One more rule: a domain must have exactly one SPF record. Two records make SPF fail for every message.

DMARC

DMARC in plain words

A DMARC record is a TXT record at _dmarc.example.com, for example v=DMARC1; p=none; rua=mailto:[email protected]. The p tag is the policy.

p=none

Monitor only. Receivers deliver mail as usual, even when it fails, but send you reports. This is the safe first step.

p=quarantine

Mail that fails should be treated as suspicious, which usually means the spam folder.

p=reject

Mail that fails should be refused. The strongest protection against people sending in your name.

The other tags the checker shows

  • rua: where receivers send aggregate reports. These summaries show which servers sent mail using your domain, and whether it passed. Without rua you get no reports, so you are working blind.
  • sp: a separate policy for subdomains. When it is missing, subdomains follow p. A subdomain with no DMARC record of its own is covered by the record of its main domain, and the checker shows that record.
  • pct: the share of failing mail the policy applies to. It lets you tighten the policy step by step.
  • adkim and aspf: alignment. DMARC passes only when the domain in the From address matches the domain that passed SPF or DKIM. Relaxed (the default) accepts subdomains; strict needs an exact match.

A safe path to reject

  1. Publish p=none with a rua address.
  2. Read the reports and find every service that sends as your domain: your mail host, newsletter tool, billing system, help desk.
  3. Fix SPF and DKIM for each one until they pass and align.
  4. Move to p=quarantine, then to p=reject.

Why Gmail and Yahoo expect all three from bulk senders

Large mailbox providers, Gmail and Yahoo among them, now ask anyone who sends a lot of email to their users to meet a set of basic rules. In short: authenticate your mail with SPF and DKIM, publish a DMARC record (a policy of none is accepted as a start), make sure the From domain aligns, make unsubscribing easy, and keep spam complaints low. Mail that does not meet these rules can be sent to spam or refused.

Authentication shows that the mail is really from you. It does not make a bad list good. Sending to addresses that bounce, or to old addresses that have become spam traps, still harms your reputation with the same providers. That is why list hygiene and authentication go together: check your records here, then clean your list or check single addresses before a send.

Questions about SPF and DMARC

Can a domain have two SPF records?

No. A domain must have exactly one TXT record that starts with v=spf1. With two, SPF fails with an error for every message. If you add a new email service, add its include to the record you already have.

Does p=none protect my domain?

Not yet. With p=none receivers still deliver mail that fails the checks. It is a monitoring step: you get reports and can find every service that sends for you. Once they all pass, move to quarantine and then reject.

Why does this checker not show DKIM?

A DKIM key lives at a name that includes a selector, such as selector._domainkey.example.com, and the selector is chosen by each sending service. It cannot be found from the domain alone. Your email service tells you its selector, or you can read it in the DKIM-Signature header of a message you sent.

What happens when SPF needs more than 10 DNS lookups?

The SPF check ends with an error (permerror) instead of a pass. Many receivers then treat the message as if SPF had failed. Remove services you no longer use, or replace a and mx terms with fixed ip4 ranges.

Who receives the DMARC reports in rua?

The mailbox you put after rua=mailto:. Receivers that support DMARC send it summary reports, as XML files, about mail that used your domain. If the mailbox is on a different domain, that domain has to agree to receive them.

Records in order? Now check the list

Good authentication and a clean list work together. Upload a CSV and see what it will cost before anything is charged.