SPF and DMARC Record Generator
Build the TXT record for your domain with a form. You get the host and value to paste into your DNS panel. Everything is generated in your browser and no DNS lookups are made.
Updated November 19, 2026
SPF record
Services that send mail for you.
TXT Host / name: @ (your domain)v=spf1 include:_spf.google.com ~allDNS lookups counted: 1 of 10 · 35 characters
How to use it
- Pick SPF or DMARC and fill in the form. Start with
~allandp=noneif you are unsure. - Copy the value and add a TXT record at the host shown:
@for SPF,_dmarcfor DMARC. - Wait for DNS to update, then check it with the DNS propagation checker.
Worked examples
- Google Workspace plus one server, hard fail:
v=spf1 ip4:203.0.113.10 include:_spf.google.com -all(1 lookup). - Strict DMARC with reports:
v=DMARC1; p=reject; sp=quarantine; pct=50; rua=mailto:dmarc@example.com; ruf=mailto:f@example.com; adkim=s; aspf=s; fo=1.
Securing your site too? Check its certificate with the SSL certificate checker.
See also
- Published the record? Watch it spread with the DNS propagation checker.
- Securing the rest of your domain? Check your certificate with the SSL certificate checker.
Frequently Asked Questions (FAQ)
An SPF record is a TXT record on your domain that lists the servers allowed to send email for it. Receivers check the sending server against the list and treat mail from other servers according to the ending: -all (fail), ~all (soft fail) or ?all (neutral).
~all (soft fail) is the safe choice while you are still finding every service that sends mail for you. Once you are sure the list is complete, -all tells receivers to reject everything else. With DMARC in place, either works well in practice.
SPF allows at most 10 DNS lookups while evaluating a record. include, a, mx, ptr, exists and redirect each count, and so do the lookups inside each include. Going over gives a permerror and SPF fails. ip4 and ip6 entries cost nothing, so flatten providers to IPs if you are near the limit. The generator counts the lookups it can see; nested includes inside providers are not looked up.
No. A domain must publish exactly one SPF TXT record. Two records cause a permerror. Combine every include and IP into one record.
Start with p=none and a rua address to collect aggregate reports without affecting delivery. When the reports show all legitimate mail passing SPF or DKIM with alignment, move to p=quarantine, then p=reject, optionally ramping with pct.
In your DNS provider as TXT records. SPF goes on the root of the domain (host @). DMARC goes on the host _dmarc. Changes can take a while to spread, which you can watch with the DNS propagation checker.
No. It only builds the text of the record in your browser. Nothing is sent anywhere and no DNS queries are made.
Related Tools
- Subnet / CIDR CalculatorIPv4 network, broadcast, mask, wildcard, host range and usable hosts, subnet splitting and IPv6 prefix info.
- Bcrypt Hash Generator & CheckerGenerate bcrypt hashes with a chosen cost factor or check a password against a hash. Runs in your browser; nothing is sent or stored.
- SHA-256 & MD5 Hash Generator and CheckerGenerate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files and check them against a checksum. Runs in your browser; nothing is uploaded.
- Password Strength CheckerTest password strength in your browser: see entropy in bits and estimated crack time. Nothing is sent or stored.
- Password GeneratorCreate strong, secure passwords with customizable options.
- DNS Propagation CheckerLook up A, AAAA, CNAME, MX, TXT and NS records on Google, Cloudflare and Quad9 and compare each answer and its TTL.