Skip to main content
KalkuNet

SPF Record Generator — Build v=spf1 and Check the 10-Lookup Limit

Assemble v=spf1 IPv4/IPv6/include mechanisms while checking RFC 10-lookup cap.

Runs in your browserWeb · Email, DNS & Web Media

DNS lookups in this record: 2 of 10. What each include contains is not counted yet — check the published record below.

  • ~all (softfail): spoofed mail is flagged, not rejected. Switch to -all once DMARC reports are clean.
TXT value only (for a DNS panel)
Count the DNS lookups of a published SPF record (every include included)

TXT records are read straight from your browser over public DNS-over-HTTPS.

When to use the SPF (v=spf1) Record & 10-Lookup Limit Builder

  • Every mechanism validated

    ip4 and ip6 addresses with their prefixes, include domains and the all choice are checked one by one, so a small typo does not make the whole SPF unreadable for receiving servers.

  • The 10 DNS-lookup limit

    RFC 7208 caps DNS lookups at 10. This tool counts include, a, mx, ptr, exists and redirect in your record, and can walk a published record with every nested include.

  • Ready to paste into DNS

    The result comes as a full zone-file line and as the bare TXT value for DNS panels such as Cloudflare, split automatically when longer than 255 characters.

  • Live check through DNS

    TXT records are read from your browser over public DNS-over-HTTPS, so you can see the include tree of Google Workspace or other services with its total lookup count.

Frequently asked questions

-all or ~all?

Start with ~all while watching DMARC reports, then switch to -all once every legitimate sender is listed. -all makes spoofed mail get rejected.

What if there are more than 10 lookups?

Remove unused includes, replace a and mx with ip4/ip6 when the addresses are fixed, or use a separate subdomain for marketing services.

Is SPF enough to stop spoofing?

No. SPF only checks the sending server, not the From address users see. Add DKIM and DMARC so spoofing is actually refused.

How long until a change takes effect?

As long as the record's TTL, usually minutes to an hour. Receivers that cached the old record keep using it until the TTL runs out.

Learn more