DMARC / SPF / DKIM Record Builder — Free Email Authentication DNS Record Generator

~/dmarc-builder ☕ Support me apps ← about me
██████╗ ███╗   ███╗ █████╗ ██████╗  ██████╗    ███████╗██████╗ ███████╗    ██████╗ ██╗  ██╗██╗███╗   ███╗
██╔══██╗████╗ ████║██╔══██╗██╔══██╗██╔════╝    ██╔════╝██╔══██╗██╔════╝    ██╔══██╗██║ ██╔╝██║████╗ ████║
██║  ██║██╔████╔██║███████║██████╔╝██║         ███████╗██████╔╝█████╗      ██║  ██║█████╔╝ ██║██╔████╔██║
██║  ██║██║╚██╔╝██║██╔══██║██╔══██╗██║         ╚════██║██╔═══╝ ██╔══╝      ██║  ██║██╔═██╗ ██║██║╚██╔╝██║
██████╔╝██║ ╚═╝ ██║██║  ██║██║  ██║╚██████╗    ███████║██║     ██║         ██████╔╝██║  ██╗██║██║ ╚═╝ ██║
╚═════╝ ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝    ╚══════╝╚═╝     ╚═╝         ╚═════╝ ╚═╝  ╚═╝╚═╝╚═╝     ╚═╝
DMARC / SPF / DKIM Builder_
Build DNS records · Generate, import & export valid DMARC, SPF & DKIM TXT records — copy & paste into your DNS
DMARC Record
Generated DMARC Record
About · FAQ · How it works

Free DMARC, SPF & DKIM Record Generator

This free tool helps you build valid DMARC, SPF, and DKIM DNS TXT records for your domain. Proper email authentication prevents spoofing, improves deliverability, and protects your brand from phishing attacks. Since February 2024, Google and Yahoo require DMARC for bulk email senders.

Visual DMARC Record Builder

Configure your DMARC policy (none, quarantine, reject), set alignment modes, configure aggregate and forensic reporting — including the newer np tag for non-existent subdomains — and generate a valid TXT record ready to paste into your DNS. The builder validates your record, checks multiple rua/ruf addresses, and warns about common mistakes.

SPF Record Generator with Provider Presets

Build SPF records using a visual mechanism editor. One-click presets for Google Workspace, Microsoft 365, SendGrid, Mailchimp, Amazon SES, and Zoho Mail. Add custom IP ranges, includes, and MX mechanisms. The validator checks IPv4/IPv6 CIDR syntax, duplicate mechanisms, a redirect/all conflict, and the 10-lookup limit live with a progress meter.

DKIM Record Builder

Generate DKIM DNS records with your selector and public key. Supports RSA and Ed25519 key types, validates the base64 encoding, and estimates your key strength. Common selector presets for major email providers. Records over 255 characters get an automatic DNS-ready split format.

Import, Export & Autosave

Already have a record? Paste it into the Import box and the type is auto-detected and every field is populated. Switch to the Export tab for a combined view of all three records with one-click copy and a downloadable .txt file. Your inputs autosave to your own browser's local storage so nothing is lost on refresh — none of it is ever sent to a server.

Free Alternative to EasyDMARC, Dmarcian & MxToolbox

Commercial DMARC platforms charge monthly fees for monitoring dashboards. This tool is a focused record builder that generates valid DNS records instantly. No account required, no data sent to any server, no cost. Build your records, paste them into DNS, and verify with a lookup tool.

Frequently Asked Questions — DMARC / SPF / DKIM

What is a DMARC record and why do I need one?

DMARC (Domain-based Message Authentication, Reporting and Conformance) is a DNS TXT record that tells receiving mail servers what to do when an email fails SPF or DKIM checks. It protects your domain from spoofing and phishing. Google and Yahoo require DMARC for bulk email senders since February 2024.

What is an SPF record?

SPF (Sender Policy Framework) is a DNS TXT record listing which servers can send email for your domain. It uses mechanisms like include, ip4, ip6, a, and mx. Receiving servers check SPF to detect spoofing.

What is a DKIM record?

DKIM (DomainKeys Identified Mail) uses a DNS TXT record to publish a public key. The sending server signs emails with a private key, and receivers verify the signature against the public key in DNS, ensuring the message was not tampered with.

Is this tool free?

Completely free — no account, no subscription, no ads, no data collection. Unlike EasyDMARC, Dmarcian, or MxToolbox which require accounts or charge for features, this generates records entirely in your browser with no signup and no paywalls.

Do I need all three records?

Yes. SPF verifies the sending server, DKIM verifies message integrity, and DMARC ties them together with a policy. All three are needed for maximum email security and deliverability.

What DMARC policy should I start with?

Start with p=none to monitor without affecting delivery. After reviewing reports and confirming legitimate senders pass, move to p=quarantine, then p=reject for full protection.

How do I add these records to DNS?

Copy the generated record and add it as a TXT record in your DNS provider (Cloudflare, Route 53, GoDaddy, Namecheap, etc.). DMARC host: _dmarc. SPF host: @. DKIM host: selector._domainkey. Propagation takes minutes to 48 hours.

How does this compare to EasyDMARC or MxToolbox?

EasyDMARC and Dmarcian are full monitoring platforms with monthly fees. MxToolbox paywalls advanced features. This is a focused record builder — generates valid DNS records instantly with no account and no cost.

What's the difference between DMARC "relaxed" and "strict" alignment?

Alignment (adkim/aspf) controls how strictly the domain in the From: header must match the domain that signed with DKIM or authenticated with SPF. Relaxed (r, the default) allows organizational-domain matches, e.g. mail.example.com aligns with example.com. Strict (s) requires an exact match. Relaxed suits most setups; use strict when you need tighter control over exactly which subdomains can pass.

What do rua and ruf actually do, and how often will I get reports?

rua (aggregate reports) delivers a daily XML summary per sending source showing pass/fail counts — this is the report you actually want and should always configure. ruf (forensic reports) would send copies of individual failing messages, but almost no major mailbox provider still sends these for privacy reasons, so many domains omit it entirely. You can list multiple addresses separated by commas, and optionally cap the report size with an !10m style suffix.

What is the SPF 10 DNS lookup limit and how do I fix it?

Every include, a, mx, exists, and redirect mechanism costs one DNS lookup, and RFC 7208 caps SPF evaluation at 10 lookups total — going over causes a permerror and SPF fails closed. This tool counts lookups live with a progress meter and warns as you approach the limit. To fix an over-limit record: remove unused includes, replace an include with its underlying ip4/ip6 ranges (which don't count as lookups), or use an SPF-flattening service.

Can a domain have two SPF records?

No. RFC 7208 requires exactly one SPF TXT record per domain — if a receiving server finds two, SPF returns a permerror and fails, even if both are individually valid. If you're combining providers (e.g. Google Workspace and a marketing platform), merge them into a single record with multiple include mechanisms rather than publishing two TXT records.

What is the new DMARC "np" tag?

np sets the policy applied to mail claiming to come from a subdomain that doesn't actually exist in DNS — a common spoofing trick. It's part of the DMARCbis update to the DMARC standard. Leave it unset and non-existent subdomains fall back to your sp (subdomain policy) or main p policy; setting np=reject closes off a spoofing avenue that sp alone doesn't fully cover.

What is BIMI, and does it need DMARC?

BIMI (Brand Indicators for Message Identification) displays your logo next to authenticated emails in supporting inboxes like Gmail and Yahoo. BIMI requires DMARC enforced at p=quarantine or p=reject — not none — covering all your mail, plus a separate BIMI DNS record pointing to your logo. DMARC is a prerequisite for BIMI, not an alternative to it.

My DKIM key is very long — how do I publish it as a DNS TXT record?

DNS TXT records are limited to 255 characters per string, and DKIM public keys (especially 2048-bit RSA) routinely exceed that. Most DNS providers accept the value as several quoted strings that get concatenated automatically, like ("first255chars" "remainder"). This tool detects when your DKIM (or DMARC/SPF) record is over 255 characters and generates that split, DNS-ready format automatically, with its own copy button.

Can I import a DMARC, SPF, or DKIM record I already have?

Yes. Paste an existing record into the Import Existing Record box in the sidebar and click "Parse & import" — the tool detects whether it's DMARC, SPF, or DKIM from its v= tag, switches to the matching tab, and fills in every field so you can review and adjust it visually instead of editing raw text.

Does this tool store or send my data anywhere?

No. Everything runs entirely in your browser — nothing you type is sent to any server. The only persistence is an autosave to your own browser's local storage, purely so your inputs survive a page reload; it never leaves your device, and no analytics event ever includes your domain or record contents.