# Should I flatten an SPF record to avoid lookup limits?

Canonical: https://www.namesilo.com/questions/dns-and-email/should-i-flatten-an-spf-record-to-avoid-lookup-limits

Published: 2026-11-17

Last updated: 2026-11-19

Topic: DNS & email

Flattening substitutes explicit addresses for some SPF mechanisms that perform DNS queries. RFC 7208 defines ip4 and ip6 as address-matching mechanisms outside the 10 DNS-querying-term limit. Replacing a provider’s dynamic include with a fixed address list also makes that list your maintenance responsibility when the provider’s authorization changes.

Fix the evaluated policy before replacing dynamic inputs

First remove obsolete senders and trace all nested includes. Use a mail provider’s supported design or maintained synchronization process when changing the representation. NameSilo supports publishing the TXT value, but its add operation does not establish that a frozen sender list stays current or valid.

Your next steps

Inventory the active sending services

Measure the complete SPF evaluation

Remove unused authorization before redesigning

Validate and maintain any explicit address list

Fix the evaluated policy before replacing dynamic inputs

First remove obsolete senders and trace all nested includes. Use a mail provider’s supported design or maintained synchronization process when changing the representation. NameSilo supports publishing the TXT value, but its add operation does not establish that a frozen sender list stays current or valid.

Verified detail: SPF DNS-query term limit, include evaluation and ip4/ip6 semantics.

Your next step: Validate and maintain any explicit address list.

## Sources

- [IETF RFC 7208 §4.6.4](https://www.rfc-editor.org/rfc/rfc7208.txt#section-4.6.4)

- [IETF RFC 7208 §5.2](https://www.rfc-editor.org/rfc/rfc7208.txt#section-5.2)

- [IETF RFC 7208 §5.6](https://www.rfc-editor.org/rfc/rfc7208.txt#section-5.6)

- [NameSilo Add DNS Records](https://www.namesilo.com/api-reference/pages?uid=dns/dns-add-record)
