How to use the DMARC Record Generator
- 1
Enter your domain
The tool shows the full record name, _dmarc.yourdomain.
- 2
Set the policy
Start with none, then quarantine and reject; add a subdomain policy if needed.
- 3
Add report addresses
Separate several addresses with commas or spaces; mailto: is added for you.
- 4
Publish and check
Add the TXT record, then paste it into the explainer to double-check.
Features
Minimal output
Default values such as relaxed alignment and pct=100 are left out to keep the record short.
Multiple report addresses
rua and ruf lists are built with mailto: prefixes.
External-domain check
Shows the authorisation record a third-party report domain must publish.
Record explainer
Translates each tag, including ri, rf and np, into plain English.
Unknown-tag alerts
Typos in a pasted record are flagged.
Copy-ready
Host, type and value shown separately for DNS panels.
Who uses it — and for what
Business owners
Stop scammers sending mail as your domain.
Marketers
Meet Gmail and Yahoo bulk-sender requirements.
IT admins
Roll out DMARC across several domains safely.
Agencies
Audit client domains by pasting their records.
What DMARC does
DMARC builds on SPF and DKIM. It tells receiving servers what to do when a message claims to be from your domain but fails both checks (or isn’t aligned with your domain): do nothing, send it to spam, or reject it. It also asks them to send you daily aggregate reports showing who is sending mail as your domain. Gmail and Yahoo require a DMARC record for anyone sending more than 5,000 messages a day, and it is the main defence against phishing that spoofs your brand.
Recommended rollout
- Publish
p=nonewith aruaaddress and read the reports for 2–4 weeks (free and paid DMARC report analysers make the XML readable). - Fix any legitimate service that fails SPF or DKIM.
- Move to
p=quarantine, optionally withpct=25then 100. - Finish with
p=reject.
If reports go to a mailbox on a different domain, that domain must publish an authorisation record — the tool reminds you.
Add the record at your domain’s DNS host (GoDaddy, Hostinger, Cloudflare, Namecheap, Google Domains/Squarespace, Route 53…) as a TXT record. DNS changes usually appear within minutes but can take up to 48 hours. This page only builds the text — it does not query DNS, so check the live record with your provider’s tools.
Alignment, explained with an example
DMARC passes when SPF or DKIM passes and the domain it checked matches the address in the visible From line. Suppose a newsletter shows From: news@mail.example.in and is signed with DKIM d=example.in. Under relaxed alignment (the default) that passes, because both share the organisational domain example.in. Under strict alignment (adkim=s) it fails, because mail.example.in is not exactly example.in. SPF works the same way using the bounce (Return-Path) domain. Strict alignment is rarely needed; turn it on only when you know every sender signs with the exact domain.
About pct: messages not selected by the percentage get the next weaker policy, so p=quarantine; pct=25 quarantines a quarter of failing mail and delivers the rest normally, while p=reject; pct=50 quarantines the other half rather than delivering it.
Common mistakes
- Two DMARC records. There must be exactly one TXT record at _dmarc; if receivers find two, they ignore DMARC for your domain.
- Record at the wrong host. It belongs at _dmarc.yourdomain, not the root, where SPF lives.
- Rushing to reject. Invoicing software, CRMs, website contact forms and helpdesks often send as your domain. Each must pass SPF or DKIM with alignment before you enforce, or real mail will bounce.
- Ignoring the reports. Aggregate reports are XML files, usually zipped, listing sending IP addresses, message counts and SPF/DKIM results — they are how you find those forgotten senders.
Build the other two records with the SPF Record Generator and DKIM Record Generator. The original specification, RFC 7489, defines the tags this page builds; newer revision work adds tags such as np for non-existent subdomains, which the explainer also recognises — check current guidance before relying on newer tags.
Worked examples
Day one: monitor only
Domain example.in, policy none and reports to dmarc@example.in give v=DMARC1; p=none; rua=mailto:dmarc@example.in, published at _dmarc.example.in. Mail delivery is unchanged; you just start receiving reports.
Gradual quarantine with a report service
Policy quarantine, pct 25 and two addresses — your own and one at reports.dmarc-vendor.example — give v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc@example.in,mailto:example-in@reports.dmarc-vendor.example. The tool warns that the vendor’s domain must publish v=DMARC1 at example.in._report._dmarc.reports.dmarc-vendor.example; report services normally do this when you sign up. Reports sent to a subdomain of your own, such as mail.example.in, need no such record.
Full enforcement
Policy reject, subdomain policy quarantine, strict DKIM alignment and fo=1 produce v=DMARC1; p=reject; sp=quarantine; rua=mailto:dmarc@example.in; ruf=mailto:forensic@example.in; adkim=s; fo=1.
Pro tips
- Paste a competitor’s or partner’s published record into the explainer to see how far along their DMARC rollout they are.
- Use a dedicated mailbox or a report service for rua — busy domains can receive many report emails a day.
Glossary
- Alignment
- Whether the domain checked by SPF or DKIM matches the From-line domain.
- Organisational domain
- The registered domain, such as example.in for mail.example.in.
- Aggregate report (rua)
- A daily XML summary of mail sent using your domain.
- Failure report (ruf)
- A per-message report about a failure; many providers do not send them.
Frequently asked questions
Where do I add the DMARC record?
As a TXT record with the host “_dmarc” (that is, _dmarc.yourdomain.com).
Will p=none affect my email?
No — it only enables reporting.
Do I need SPF and DKIM first?
Yes. DMARC passes only when SPF or DKIM passes and aligns with your From domain.
How long until my DMARC record works?
As soon as DNS updates, usually within minutes to a few hours. Aggregate reports typically start arriving the next day.
Does DMARC protect lookalike domains?
No. It only covers your exact domain and its subdomains; a scammer using a similar-looking domain needs other defences such as user awareness and domain monitoring.
What does ri=86400 mean in an existing record?
It requests aggregate reports every 86,400 seconds (24 hours); the explainer converts it to hours for you.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Security & Privacy (20 tools)