← All Tools

SPF Record Builder & Validator

Construct an SPF record mechanism by mechanism, then publish the result as a single DNS TXT record. Lints for the 10-DNS-lookup limit, length, and common mistakes.

Mechanisms

Each row is a mechanism evaluated left-to-right. include, a, mx, ptr, and exists each cost an extra DNS lookup (RFC 7208 max 10).

Default policy:

SPF Record

v=spf1 -all
Length: 0 chars DNS lookups: 0 / 10 Mechanisms: 0

Parse / Validate Existing Record

Paste an existing SPF record (e.g. from dig +short TXT example.com) to load it into the builder.

Mechanism Reference

MechanismMeaningDNS
ip4:1.2.3.4Authorize an IPv4 address or CIDR0
ip6:2001:db8::/32Authorize an IPv6 address or CIDR0
a / a:domainA/AAAA records of domain1
mx / mx:domainMX hosts of domain1
include:domainRecursively evaluate another SPF1+
exists:domainMacro-expanded A lookup1
ptr:domainReverse DNS — discouraged1+
redirect=domainReplace policy with another domain1+
Copied!