Skip to tool
JoeLucky

Click ★ on a tool to save it

Tool Categories

What Is My IPIP LookupIP Reputation & Risk CheckerCIDR Subnet CalculatorNEWSPF & DMARC GeneratorNEW
JoeLucky

Practical online tools, all in one place

Privacy PolicyTerms of Service

© 2026 JoeLucky®. All rights reserved.

  1. JoeLucky
  2. /Network & IP
  3. /SPF & DMARC Generator

SPF & DMARC Generator

Generate and check SPF and DMARC records in your browser, without querying DNS.

Report

SIMILAR NETWORK & IP

View all
CIDR Subnet Calculator

Enter a CIDR to get network, broadcast, usable hosts and masks for IPv4 and IPv6.

Open →
IP Lookup

Look up RDAP registry data and reverse DNS for an IPv4/IPv6 address, domain or URL.

Open →
What Is My IP

Shows your public IP, network details and approximate location, with a WebRTC leak check.

Open →

💬 Comments

?

No comments yet. Be the first!

WHAT IS SPF & DMARC GENERATOR?

The SPF & DMARC Generator builds and checks e-mail authentication records following RFC 7208 (SPF) and RFC 9989 (DMARC). For SPF you can tick common sending services' includes, add IPs, set the ending rule and estimate the DNS lookup count (limit 10); for DMARC you set policies p/sp/np, report mailboxes, failure-report options and alignment modes. You can also paste an existing record for an offline syntax check. The tool only handles text: it never queries DNS and cannot prove that DNS is configured correctly.

How to use?

  1. In "SPF generator" tick the sending services you use, add other includes or IPs, and pick the ending rule (start with ~all).
  2. Check the generated record, the DNS lookup count and the findings, then copy the record (or the quoted version) into your DNS panel.
  3. In "DMARC generator" enter the domain, choose the policy and report mailboxes, and follow the guidance from p=none to p=quarantine and p=reject.
  4. Use "SPF checker" or "DMARC checker" to paste an existing record and read the parsed result and findings.

Notes

  • Example: for a domain that only uses Google Workspace, SPF is v=spf1 include:_spf.google.com ~all, and a starter DMARC is v=DMARC1; p=none; rua=mailto:dmarc@your-domain.
  • A domain may have only one SPF record and at most 10 DNS lookups; RFC 9989 removed pct, rf and ri from DMARC, and pct is not written by default.
  • Include values of common senders come from each service's official docs and nested lookup counts were measured in public DNS on 2026-10-20 (providers can change them); Postmark's docs say it need not be added to your SPF, so it is not preset.
  • The tool only handles text, never queries DNS and creates no DKIM private keys; after publishing, confirm with a DNS lookup tool and a test message.

Frequently asked questions

Can this tool verify that my DNS is configured correctly?

No. It only builds and checks the record TEXT in your browser and never queries DNS, so it cannot prove that a record is published or live. After publishing, confirm with a DNS lookup tool and check authentication results with a real test message.

What is the SPF limit of 10 DNS lookups?

Under RFC 7208 an SPF evaluation may involve at most 10 terms that trigger DNS queries (include, a, mx, ptr, exists and redirect), and terms nested inside an include count too. ip4, ip6 and all do not count. Beyond the limit receivers return permerror, which means SPF fails.

How accurate is the lookup count shown?

For the built-in common senders the tool uses nested lookup counts measured in public DNS on 2026-10-20; for an include you type yourself the nested count is unknown, so it is counted as 1 with a notice. Providers can change records at any time, so confirm with a DNS-based SPF checker before publishing.

Should an SPF record end in ~all or -all?

~all (soft fail) says unlisted sources are probably unauthorized but should be accepted and marked; it suits the start, before every sender is confirmed. -all (hard fail) rejects them outright. Google's guidance recommends ~all, while Microsoft recommends -all once DKIM and DMARC are also in place. Never use +all, which lets anyone send as your domain.

Which tags does DMARC define under RFC 9989, and what happened to pct?

RFC 9989 (DMARCbis) defines v, p, sp, np, adkim, aspf, fo, rua, ruf, psd and t. The RFC 7489 tags pct, rf and ri were removed, with t (the testing flag; t=y roughly replaces the common pct=0 use) taking over the usual use case. This tool does not write pct by default; it is added only if you switch it on under "Advanced and compatibility options".

How do I move DMARC from p=none to p=reject step by step?

Start with p=none and an rua address, and collect aggregate reports for at least a month to find every legitimate sender. Align each sender's SPF or DKIM with your From domain, then move to p=quarantine and watch again (use t=y first if unsure). Switch to p=reject only when legitimate mail is no longer affected. p=reject can disturb mailing lists and forwarding, so read the reports first.

What should I know about report mailboxes on another domain? Why is Postmark not a preset?

When an rua or ruf mailbox is outside your domain, that other domain must publish a TXT record with the value v=DMARC1; at "your-domain._report._dmarc.other-domain", otherwise most receivers will not send reports; the tool shows the exact host name. Postmark's own documentation says you do not need to add it to your SPF, so it is not in the presets; every listed service's include value comes from its official documentation.

This tool only builds and checks TEXT in your browser. It does not query DNS and cannot prove that your DNS is configured correctly. After publishing, confirm the record is live with a DNS lookup tool.
Common sending services (include values taken from each provider's own docs)
exists domains (advanced, one per line)

Generated SPF record

v=spf1 include:_spf.google.com ~all
Generated SPF record
TypeDNS host nameValue
TXT@v=spf1 include:_spf.google.com ~all
DNS lookups1 / 10
35 characters—
No problems found.
Basis and limits
  • SPF follows RFC 7208: at most 10 terms that trigger DNS queries (include, a, mx, ptr, exists, redirect); ip4/ip6/all cost nothing.
  • DMARC follows RFC 9989 (DMARCbis): tags v, p, sp, np, adkim, aspf, fo, rua, ruf, psd, t; pct, rf and ri were removed.
  • Include values and nested lookup counts of common services were checked by hand / measured in public DNS on 2026-10-20; providers can change them at any time, so follow their documentation.
  • Postmark's own documentation says you do not need to add it to your SPF (its Return-Path lives on its domain), so it is not in the default list.
  • Use DKIM alongside SPF and DMARC; DKIM keys and selectors come from your sending service and this tool never creates private keys.