The short answer
To check SPF, DKIM and DMARC records by hand, look up three TXT records: your domain for SPF, _dmarc.yourdomain for DMARC and selector._domainkey.yourdomain for DKIM. Then send a message to a Gmail address, choose Show original and read the Authentication-Results line, which should show spf=pass, dkim=pass and dmarc=pass.
There are two checks, and they answer different questions. A DNS lookup shows what your domain publishes. A real message shows whether your mail passes. A domain can publish all three records and still send mail that fails, so do both.
Look up SPF and DMARC from your own computer
- 1
Open a command window
On Windows, open Command Prompt. On a Mac, open Terminal. Both are already installed.
- 2
Ask for the SPF record
On Windows type nslookup -type=txt yourbusiness.com and press Enter. On a Mac type dig txt yourbusiness.com +short. A domain usually has several TXT records. The SPF record is the one that starts v=spf1.
- 3
Ask for the DMARC record
Run the same command with _dmarc. in front: nslookup -type=txt _dmarc.yourbusiness.com. The answer should start v=DMARC1, followed by p= and the policy.
- 4
Read what came back
No line starting v=spf1 means no SPF record. For the _dmarc name, "Non-existent domain" on Windows, NXDOMAIN on a Mac or an empty answer means no DMARC record. If the lines are there and you want to know what each part says, see what SPF, DKIM and DMARC records mean.
Both commands are the ones Microsoft's own DMARC and DKIM troubleshooting pages use. They read public DNS, so they work for any domain, not only your own.
Check your records
Or let this page look them up
Type your domain. This reads the same public DNS records from your browser and explains each result. Nothing is saved.
DKIM needs the selector name before you can look it up
A DKIM key is published at selector._domainkey.yourbusiness.com, and the selector is a name chosen by whoever set it up. DNS has no command that lists them. You have to know the name first, and there are two ways to get it.
- From your provider. Google Workspace uses google unless an admin changed it, so try nslookup -type=txt google._domainkey.yourbusiness.com. Microsoft 365 always uses selector1 and selector2, published as CNAME records, so Microsoft's page has you run nslookup -type=CNAME selector1._domainkey.yourbusiness.com.
- From a real message. Open the full headers of an email you sent (the steps are below) and find the DKIM-Signature line. The value after s= is the selector and the value after d= is the domain that signed. This works for any provider and any tool.
A healthy answer starts v=DKIM1 and contains p= followed by a long key. Each service that sends as your domain has its own selector, so the mailbox key tells you nothing about the newsletter tool. If you are not sure which company runs your mailboxes, find your email provider first.
Read the result on a real message in Gmail
- 1
Send a message to a Gmail account
Send it from your business address to a Gmail address that belongs to someone else, or to a second account of your own. Google's DKIM page says not to test by emailing yourself.
- 2
Open Show original
Open Gmail in a browser and open the message. Beside the Reply button, click More (the three dots), then Show original. The full header opens in a new window.
- 3
Find Authentication-Results
This is the line Gmail writes after running its checks. Look for spf=pass, dkim=pass and dmarc=pass. Google's troubleshooting page lists the other SPF results you may see: neutral, softfail, fail, temperror and permerror.
- 4
Check whose domain passed
A domain is printed beside each result. If dkim=pass names your newsletter tool's domain instead of yours, DKIM passed for them, and DMARC can still fail for you.
In the Gmail app on Android, open the message, tap View details, then View security details. Google's help says the message is authenticated when it shows a Mailed by line and a Signed by line with the sending domain, and that a question mark beside the sender's name means it is not. In desktop Outlook, the headers are under File, then Properties, in the Internet headers box.
Repeat the test for everything that sends as your domain: the invoicing app, the booking system, the newsletter and the website's contact form. Each one sends through different servers and can fail on its own.
Two SPF faults you can count by hand
More than one SPF record. Count the lines that start v=spf1 in your lookup. The SPF standard, RFC 7208, says a domain must not have more than one, and a check that finds two returns a permanent error. The fix is to merge them into one line.
More than 10 lookups. The same standard limits an SPF check to 10 DNS lookups and returns a permanent error past that. Count one for each include, a, mx, ptr, exists and redirect in your record. The ip4, ip6 and all parts cost nothing. Then look up each include with the same nslookup command and count what is inside it too, because nested lookups are part of your total. A record with four includes can be over the limit.
A less known rule sits beside it: the standard says a check should also stop after two lookups that return nothing, so an include left over from a tool you cancelled years ago can do harm on its own. If counting by hand gets tedious, Google's free Check MX tool in the Google Admin Toolbox counts SPF lookups for a domain.
A free check that does the DNS half in one pass
Our Email Checker runs the lookups above for any domain. It follows every include to give a real SPF lookup count out of 10, flags a second SPF record, reads the DMARC policy and reporting address, and names the mail provider and the company that hosts the DNS.
For DKIM it has the same problem you do: it cannot list selectors. It tries the names your provider documents, then 18 common ones that hosting panels and marketing platforms use, such as default, s1, k1 and mandrill. If your key sits under a custom name, the report says it could not find one, and the s= value from a real message is the way to settle it. Only for Microsoft 365, Proton Mail and Fastmail, whose selector names are fixed, does it state that DKIM is off.
It reads DNS and nothing else. It sends no message and reads none, so it cannot do the second half of this page: it does not know whether mail from your invoicing app passes at Gmail. It checks your main domain, so a sending subdomain such as mail.yourbusiness.com needs the manual lookup. The summary is free, and the full report with the records asks for your email address.
Once all three show pass, the remaining question is the p= value in your DMARC record, and whether to use none, quarantine or reject. If everything passes and mail still lands in junk, the records are not the cause: see why business emails go to spam.
Check your own domain
The free Email Checker reads your domain's public records and shows your email provider and whether SPF, DKIM and DMARC are in place.
Get help from Venbit
The Venbit Team
Web design & SEO, Mill Creek, WA
Venbit is a web design, SEO, and digital marketing studio in Mill Creek, Washington. Since 2011 we've designed, built, and ranked small-business websites for clients across the Puget Sound and around the country, so the numbers and advice here come from real projects, not a content mill.
Sources
- RFC 7208: Sender Policy Framework (sections 3.2 and 4.5 on one record, 4.6.4 on the 10-lookup and void lookup limits)
- RFC 6376: DomainKeys Identified Mail (selectors and the _domainkey name)
- Gmail Help: Trace an email with its full header (Show original, Outlook headers)
- Gmail Help: Check if your Gmail message is authenticated
- Google Workspace Admin Help: Set up DKIM (default selector, testing with a message, 48 hours)
- Google Workspace Admin Help: Set up SPF (48 hours)
- Google Workspace Admin Help: Troubleshoot SPF issues (Authentication-Results, Check MX, nested lookups)
- Google Admin Toolbox: Check MX
- Microsoft Learn: How to use DKIM for email in your custom domain (selector1 and selector2 CNAMEs, nslookup and dig)
- Microsoft Learn: Set up DMARC to validate email in Microsoft 365 (nslookup for the _dmarc record, reading Authentication-Results)

