SPF Record Builder
Free online SPF record builder. Create and validate Sender Policy Framework DNS TXT records with ip4, ip6, include, a, mx, exists, and ptr mechanisms. Tracks the RFC 7208 DNS lookup limit of 10, warns on TXT length, and generates the exact record to publish. No signup required.
Loading tool...
What is SPF Record Builder?
An SPF record builder helps you compose a valid Sender Policy Framework (SPF) DNS TXT record. SPF, defined in RFC 7208, lets a domain owner declare which mail servers are authorized to send email on its behalf. This tool lets you add mechanisms (ip4, ip6, include, a, mx, exists, ptr), choose the final "all" policy, add redirect and explanation modifiers, and validates everything against the RFC limits.
Key Benefits
- Validates mechanism syntax live
- Tracks the 10-DNS-lookup limit
- Warns on TXT length over 255 chars
- Copy or download the finished record
Common Use Cases
- •Email authentication setup
- •DMARC prerequisite configuration
- •Migrating mail providers
- •Auditing existing SPF records
How to Build an SPF Record
- Add your mail server IP: Use ip4 or ip6 mechanisms to list the addresses authorized to send mail.
- Include third-party senders: Use include: to reference SPF records from providers like Google or Microsoft.
- Set the final policy: Choose -all (Fail) for production or ~all (SoftFail) while warming up.
- Publish the record: Copy the generated TXT string and add it to your DNS as a TXT record.
Key Features
- Supports ip4, ip6, include, a, mx, exists, and ptr mechanisms
- Qualifiers +, -, ~, and ? for each mechanism
- Live RFC 7208 DNS lookup counter with over-limit warning
- Syntax validation for IPv4, IPv6, and domains
- redirect= and exp= modifier support
- One-click copy and download of the TXT record