SPF “too many DNS lookups” – check and fix
SPF allows at most 10 DNS lookups. Go over and every receiver treats SPF as a permanent error – often without anyone noticing. Check how many lookups your record needs. Free, no sign-up.
What counts as a lookup
Each include, a, mx, ptr, exists and redirect costs one lookup, and the includes inside those includes count too. ip4, ip6 and all cost nothing. RFC 7208 also limits ‘void’ lookups (names that return nothing) to 2.
How to get under 10
Remove services you no longer use. Replace a and mx with the actual ip4 ranges if they are stable. Move marketing and transactional tools to their own subdomain (e.g. news.yourdomain.com) with its own SPF record. Avoid ptr entirely.
What about SPF flattening?
Flattening replaces includes with IP addresses. It works, but the provider’s IPs change without notice, so a flattened record must be updated automatically or it will silently break.
FAQ
What happens when SPF has more than 10 lookups?
The SPF result is permerror. DMARC then has to rely on DKIM alone; if DKIM is missing or unaligned, your mail fails DMARC.
Does Google count the same way?
Yes – the limit is part of the SPF standard and applied by Gmail, Outlook and Yahoo.
More checks
DMARC checker · SPF record checker · DKIM checker · Gmail & Yahoo bulk sender requirements · Outlook.com sender requirements · Why are my emails going to spam? · BIMI checker · MTA-STS & TLS-RPT checker · Google Workspace SPF, DKIM & DMARC check · Microsoft 365 SPF, DKIM & DMARC check
What we check
- SPF – which servers may send as you, the 10-DNS-lookup limit that silently breaks SPF,
+alland?allmistakes - DKIM – signing keys on 49 common selectors, 1024-bit and revoked keys
- DMARC – policy strength, reporting, subdomain policy
- MTA-STS & TLS-RPT – protection against downgrade attacks on incoming mail
- BIMI – your logo next to your emails in Gmail and Apple Mail
- Gmail / Yahoo / Outlook bulk-sender requirements – pass or fail
Free check vs. fix pack
- Free
- Score, risk, Gmail/Yahoo readiness and every problem found.
- 9 USDC
- The fix for every problem, the exact DNS records to copy and paste into Cloudflare, GoDaddy, Namecheap or any DNS panel, a downloadable report, and free re-checks for 30 days while you fix things. Paid once with USDC on Solana – no account, no subscription. Email consultants charge €150–€500 for the same setup.