[Articles](https://mailglo.com/articles/)

For AI agents: [llms.txt, the index of guides and public pages](https://mailglo.com/llms.txt)

# SPF void lookups: the limit of two in RFC 7208

A void lookup is a DNS lookup during an SPF check that finds nothing. RFC 7208 recommends allowing two. A receiver that uses that limit returns "permerror" at the third.

If your record already reaches it, [too many SPF lookups find nothing](https://mailglo.com/docs/findings/spf-too-many-void-lookups/) shows how to find the terms and remove them.

## What counts as void?

[Section 4.6.4](https://www.rfc-editor.org/rfc/rfc7208#section-4.6.4) defines it as a term whose DNS query returns "either a positive answer (RCODE 0) with an answer count of 0, or a "Name Error" (RCODE 3) answer". The name exists but has no record of the kind asked for, or the name doesn't exist.

A lookup that times out or gets a server failure is not void. When that happens to the SPF record itself, the check ends with "temperror" ([section 4.4](https://www.rfc-editor.org/rfc/rfc7208#section-4.4)).

## Is the limit required?

No. The standard's wording:

```
SPF implementations SHOULD limit "void lookups" to two.  An
implementation MAY choose to make such a limit configurable.  In
this case, a default of two is RECOMMENDED.  Exceeding the limit
produces a "permerror" result.
```

Unlike the [10-lookup limit](https://mailglo.com/articles/spf-lookup-limit/), which is a MUST, this is a SHOULD. A receiver that follows the standard may set another limit or none, though one that makes it configurable is told to start at two. The RFC doesn't tell you which receivers use it.

The count is separate from the 10. A record with three lookup terms in total reaches it if all three find nothing.

## Why does the limit exist?

Lookups for names that don't exist cost receivers the same work as real ones. [Section 11.1](https://www.rfc-editor.org/rfc/rfc7208#section-11.1) describes an attacker who publishes terms such as `a:example.com a:foo.example.com a:bar.example.com` aimed at a victim's DNS, and notes "The names used in the record needn't exist for the attack to be effective." Its answer is to stop "as soon as more than two "void lookups" have been encountered". RFC 4408, the version before RFC 7208, had no such limit ([appendix B](https://www.rfc-editor.org/rfc/rfc7208#appendix-B)).

## Is a term always void, or only sometimes?

It can depend on the message. An `a` term asks for an A record when the sending server uses IPv4 and an AAAA record when it uses IPv6 ([section 5.3](https://www.rfc-editor.org/rfc/rfc7208#section-5.3)). A name with only an IPv6 address is a void lookup for mail sent over IPv4, and not for mail sent over IPv6.

## Check your record

The free [SPF checker](https://mailglo.com/tools/spf-checker/) can mark some entries "finds nothing". It can't predict that result for a particular message.

## Sources

- [RFC 7208, section 4.6.4](https://www.rfc-editor.org/rfc/rfc7208#section-4.6.4), the definition and the recommended limit.
- [RFC 7208, sections 4.4 and 5.3](https://www.rfc-editor.org/rfc/rfc7208#section-4.4), DNS errors on the SPF record and how `a` looks names up.
- [RFC 7208, section 11.1](https://www.rfc-editor.org/rfc/rfc7208#section-11.1), why the limit exists.
- [RFC 7208, appendix B](https://www.rfc-editor.org/rfc/rfc7208#appendix-B), the changes from RFC 4408.

Last updated 3 Dec 2026: New article: the recommended limit of two lookups that find nothing, quoted from RFC 7208.

Found an error, or a question this page does not answer? Email support@mailglo.com.
