SPF Record Merger, 10-Lookup Visualizer & 255-Byte TXT Chunker
Merges duplicate SPF records without losing senders, traces live nested DNS lookups, and formats >255-character strings safely.
Runs directly in your browser with zero signup · Need 24/7 automated monitoring & 15-minute SPF auto-healing? Run Full Domain Audit →
SPF Merger & Lookup Tree — Technical Reference & FAQ
Technical Specification & Field Reference
Sender Policy Framework (RFC 7208) publishes an allowlist of outbound mail infrastructure inside your root or envelope subdomain TXT record. Two silent rules trip up growing teams: first, publishing more than one v=spf1 TXT string causes immediate PermError; second, the total recursive count of DNS-querying mechanisms across the entire evaluation tree cannot exceed 10 queries (or 2 empty NXDOMAIN void queries).
| SPF Mechanism / Modifier | Counts Toward 10-Lookup Cap? | Best-Practice Usage |
|---|---|---|
ip4: & ip6: | No (0 DNS lookups) | Direct CIDR blocks for dedicated relays and collapsed subnet trees |
include: & redirect= | Yes (1 + all nested vendor lookups) | Deduplicate repeated includes; prune cancelled SaaS vendors immediately |
a & mx | Yes (1 top-level lookup each) | Remove redundant a or mx tokens if web servers never send mail |
ptr | Yes (Deprecated by RFC 7208 § 5.5) | Delete immediately; slow reverse-DNS walks fail on strict gateways |
Frequently Asked Questions
Why does having two SPF records break email delivery?
RFC 7208 § 3.2 mandates at most one TXT record starting with v=spf1 per domain. Publishing two separate v=spf1 lines forces receiving servers to return immediate SPF PermError.
What counts toward the 10-DNS-lookup limit in SPF?
Every include, a, mx, ptr, exists, and redirect modifier — including all nested includes inside third-party vendors — counts toward the hard ceiling of 10 lookups. ip4, ip6, and all cost 0 lookups.
Why shouldn't I just flatten SPF into static IPs once by hand?
SaaS providers like SendGrid, HubSpot, and Microsoft rotate outbound IP subnets without notice. Manual static IP snapshots silently go stale; MXWarden re-resolves and updates collapsed CIDR blocks every 15 minutes.
Embed This Free Tool on Your MSP Site or Internal Wiki
Copy this responsive iframe snippet to embed SPF Merger & Lookup Tree on documentation pages or client portals:
<iframe src="https://mxwarden.com/embed/tools/spf-record-flattener-merger" width="100%" height="520" style="border:1px solid #e2e8f0;border-radius:12px;" loading="lazy"></iframe>