DNS lookup limit
Last updated May 5, 2026
An SPF record ↗︎ lists which servers are authorized to send email for your domain. SPF records can reference other domains and services (for example, using include: or mx mechanisms), and each such reference requires a separate DNS lookup to verify. The SPF specification (RFC 7208) ↗︎ limits the total number of these lookups to 10 per SPF check. If your SPF record exceeds this limit, receiving mail servers may treat the SPF check as a permanent error and reject or flag your emails.
To check if your SPF records are compliant with the SPF specification:
- Log in to the Cloudflare dashboard ↗︎, and select your account and domain.
- Go to Email > DMARC Management.
- In Email record overview, select View records.
- Find your SPF record, and select the three dots next to it > Edit.
- DMARC Management will inspect your records and check for the total number of DNS lookups. If the record exceeds the limit, DMARC Management will display a warning. To fix this, remove unnecessary entries in your SPF record. Refer to Manage DNS records for more information.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dmarc-management/dns-lookup-limits/#page","headline":"DNS lookup limit","description":"Review number of DNS lookups on your SPF records","url":"https://developers.cloudflare.com/dmarc-management/dns-lookup-limits/","inLanguage":"en","image":"https://developers.cloudflare.com/dmarc-management/dns-lookup-limits/og.png?v=b1f774077ac21adc","dateModified":"2026-05-05","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["DNS"]}
description: Review whether emails sent on your behalf passed DMARC, SPF, and DKIM checks. title: Statistics and details image: https://developers.cloudflare.com/dmarc-management/statistics/og.png?v=fd9af308b17d5884
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/dmarc-management/llms.txt
Use this file to discover all available pages before exploring further.
Docs