Fix 'SPF too many DNS lookups' at Cloudflare
SPF allows at most 10 DNS lookups. Each include: and some others count. Over 10 and inboxes treat SPF as broken.
Steps
The steps to fix this, in order. Do them at the company that runs your domain's settings.- Sign in to Cloudflare and select your domain.
- Open DNS, then Records.
- Click Add record (or Edit on the existing record).
- Choose the type, fill in Name and Content as shown below, and click Save. Mail records should be set to DNS only (grey cloud).
TypeTXT
Host@
Valuev=spf1 include:_spf.google.com ~all
Remove include: entries for services you no longer use. DNSFix's free SPF checker shows exactly how many lookups each include uses.
DNSFix Pro and the Fix pack are coming soon Until then every fix guide here is free.
This is about our paid plan. The domain check and everything it finds stay free.
Get the exact record for your domain
A free scan checks SPF, DKIM, DMARC, MX, SSL and renewal dates in about 10 seconds.
Same fix at: GoDaddy · Namecheap · Squarespace Domains · Wix · Google Cloud DNS · Azure DNS · Microsoft 365 · other providers