Your domain, checked and fixed.

Blog · 2026-11-30 · The DNSFix™ team

SPF too many DNS lookups: how to get under 10

If your SPF record needs more than 10 DNS lookups, it breaks and inboxes treat it as an error. Here's how to count yours and get back under the limit.

About this
  1. Your SPF record lists the services allowed to send email as you. It has a hard limit: an inbox may do at most 10 DNS lookups to read it. Go over and the whole record fails with an error called permerror, as if you had no SPF at all. RFC 7208, section 4.6.4.

What counts toward the 10
    • Counts: include:, a, mx, ptr, exists: and redirect=. Every include: also counts everything inside it.
    • Doesn't count: ip4:, ip6: and all. These are written straight into your record, so no lookup is needed.
    • Empty answers: a lookup that finds nothing is a "void lookup". More than 2 of those also break the record.

    This is why the limit sneaks up on you. One newsletter tool's include can hide 3 or 4 more inside it.

How to count yours
  1. Paste your domain into the free SPF check. It opens every include and shows the running total, so you can see which service uses the most.

5 ways to get back under 10
    1. Remove services you stopped using. Old newsletter tools, a CRM you cancelled, a previous web host. This is the most common fix. Find old senders.
    2. Merge duplicate records. A domain may have only one SPF record. Two records is an error on its own. Merge them.
    3. Drop ptr. The standard says not to use it, and it costs a lookup.
    4. Drop a and mx if those servers don't send mail. Many domains list them by habit.
    5. Move a sender to a subdomain. Let your newsletter tool send from news.yourdomain.com, which gets its own SPF record and its own 10 lookups.

    Some guides suggest "flattening": replacing includes with the raw IP addresses. It works on day one, but when a service changes its addresses your record goes stale and mail starts failing. Only do it with a tool that keeps the list updated for you.

Check it after you change it
  1. DNS changes can take a while to show. Run the SPF check again after you save. It shows the count, any duplicate record and the exact record to paste for your DNS host. Full guide: SPF too many lookups.

Ask DNSFix™ about this
  1. Answers only from DNSFix™ guides
Try it
  1. No answer in our guides? We say so and point you to a free check. Questions are kept without names, emails or domains to help us write new guides.

Check your domain free. SPF, DKIM, DMARC, website and domain health in a few seconds.

Run the free check

Rather not do this alone? Fix Coach comes with Pro: it guides you step by step and checks your live DNS after each change.