SPF and DMARC record generator
Build ready-to-paste SPF and DMARC DNS records from your senders and policy.
SPF and DMARC record generator
Enter the services and addresses allowed to send mail for your domain, and this tool assembles the matching SPF and DMARC TXT records — syntax ready to paste directly into your DNS zone. It is built for anyone setting up email authentication: a developer configuring a new domain, an admin tightening deliverability, or anyone auditing what a mail setup should look like before publishing it.
Add permitted senders as IP addresses, CIDR ranges or domains — a plain domain becomes an "include:" mechanism automatically. Presets add the correct include for Google Workspace, Microsoft 365, SendGrid or Mailgun with one click, so you don't need to look up their SPF hostnames. Choose how strictly SPF should fail unauthorized senders, then set the DMARC policy — monitor only, quarantine or reject — along with the percentage of mail it applies to, the interval between aggregate reports, and where reports should be sent. SPF and DKIM alignment can each be set to relaxed or strict, and a separate policy can be applied to subdomains.
The live output updates as you change any option, and the tally reports how many senders were resolved and how many of SPF's 10 allowed DNS lookups they use — going over that limit causes receivers to treat the whole record as a permanent error, so it's worth watching before you publish. Turn on hostnames to see each record next to the exact name it belongs at (the domain itself for SPF, "_dmarc." plus the domain for DMARC).
Everything runs in your browser. The domain, sender list and report addresses you enter are never uploaded or logged — nothing leaves your device. When you're happy with the result, copy it, download it as a .txt file, or send it to another tool to check it further.