Email DNS checker: MX, SPF, DMARC, DKIM

Checks the DNS that decides whether mail from a domain is delivered: MX records, the SPF record with its DNS lookup count, the DMARC policy, DKIM keys for your selector or the common ones, and whether the mail servers are on spam blocklists.

Try

Last reviewed . DNS queries from our own resolver in Helsinki.

The same check in a terminal

MX:

dig +short example.com MX

SPF:

dig +short example.com TXT | grep spf1

DMARC:

dig +short _dmarc.example.com TXT

DKIM for selector s1:

dig +short s1._domainkey.example.com TXT

From the command line

Every check also answers in plain text to curl, and in JSON with ?format=json. All endpoints.

curl https://tools-api.wardterm.com/email/example.com
curl "https://tools-api.wardterm.com/email/example.com?selector=s1"

Reading the result

SPF lookups

Each include, a, mx, ptr, exists and redirect costs a DNS lookup, includes counted. Over 10, receivers treat SPF as failed.

DMARC policy

p=none only collects reports. quarantine sends failing mail to spam, reject refuses it.

DKIM selector

The selector is in the DKIM-Signature header of a mail you sent (s=). Enter it if the common ones find nothing.

Questions

How do I check my SPF record?

Enter the domain and press Check. The SPF line shows the record and how many of the 10 allowed lookups it uses.

Why does SPF fail with too many DNS lookups?

Every include adds the lookups of the included record. Remove services you no longer use, or replace includes with ip4 and ip6 ranges.

How do I find my DKIM selector?

Open a mail you sent, show the original and look for s= in the DKIM-Signature header.

Which DMARC policy should I use?

Start with p=none and a rua address, read the reports for a couple of weeks, then move to quarantine and reject.

Related guides

More tools

All tools · Acceptable use