SPF Record Generator
Build a valid SPF TXT record for your domain. The live DNS lookup counter warns you before you cross the 10-lookup limit.
DNS lookup counter
0 / 10
v=spf1 -all
Publish this as a TXT record at the root of your domain. Most DNS providers call it the "@" or blank host.
How to use
- Add every service that sends mail for your domain: includes (like Google or your mail provider), server IP addresses, MX and A records.
- Watch the DNS lookup counter — keep it at 10 or below.
- Copy the generated record and add it as a TXT record at your domain root.
Note: SPF allows a maximum of 10 DNS-triggering mechanisms (include, a, mx, ptr, exists, redirect) per RFC 7208 — receivers may reject mail from domains that exceed it. This counter is an estimate: nested includes can add hidden lookups, so verify your published record with an online SPF checker afterwards. DNS changes can take a few hours to spread.