Skip to content
CyberVigil
Fix guides

How to add a DMARC record in Cloudflare

Add a DMARC record in Cloudflare DNS with the exact Type, Name and Content to enter, or let Cloudflare's free DMARC Management create one and read your reports.

By the CyberVigil teamHow we write and check guidesUpdated Oct 24, 20263 min read
Quick answer

In the Cloudflare dashboard, open your domain's DNS Records page and select Add record. Choose TXT, enter _dmarc as the Name, paste v=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.com as the Content, and save. Check for an existing _dmarc record first. You can also turn on Cloudflare's free DMARC Management, which adds a record for you and summarizes your reports.

If your domain's DNS runs on Cloudflare, adding DMARC is one TXT record. Cloudflare also offers a free DMARC Management tool that creates the record for you and turns the raw reports into a readable dashboard.

This guide covers both. Start by checking what your domain already has.

Free DMARC checker

Is your DNS managed at Cloudflare?

Your DNS is on Cloudflare if your domain's nameservers end in ns.cloudflare.com. Your domain registrar shows them, and so does the Overview page for your domain in Cloudflare.

If your nameservers point somewhere else, add the record there instead. Our DMARC fix guide has steps for other DNS hosts.

DMARC also depends on SPF and DKIM. Set those up for every service that sends email as your domain first, or your real email can fail DMARC once you tighten the policy. The free SPF checker shows your current SPF record.

What values do I enter in Cloudflare?

  • TypeTXT
    Name / Host_dmarc
    Valuev=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.comTTL: leave it on Auto. Change dmarc@yourbusiness.com to an inbox you check.

The value has three parts. v=DMARC1 marks the record as DMARC. p=none turns on monitoring without blocking anything. rua=mailto: sets where daily summary reports go.

Starting at p=none lets you see every service that sends email as your domain before you block anything. Google recommends a dedicated mailbox or group for reports, since they can arrive every day.

How do I add the record manually?

  1. In the Cloudflare dashboard, select your account and domain.
  2. Go to DNS → Records.
  3. Look for an existing TXT record named _dmarc. If there is one, select Edit and update its content instead of adding another.
  4. Otherwise, select Add record and choose TXT as the Type.
  5. Enter _dmarc as the Name.
  6. Paste v=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.com into Content, with your own address.
  7. Leave TTL on Auto and select Save.

Cloudflare changes usually show up within minutes. Re-run the DMARC checker to confirm there's exactly one record.

Check SPF, DKIM and your website too

DMARC works best alongside SPF and DKIM. A free scan checks all three, plus your certificate and security headers, in one plain-English report.

  • Free check
  • No signup
  • No changes to your website

Should I use Cloudflare DMARC Management?

It's worth turning on if you'd like help reading reports. Cloudflare's tool lists every source that sends email as your domain and shows whether each one passes SPF, DKIM and DMARC. Raw DMARC reports are XML files, so a dashboard saves time.

To turn it on:

  1. In the Cloudflare dashboard, select your account and domain.
  2. Go to Email → DMARC Management.
  3. Select Enable DMARC Management.
  4. If you have no DMARC record, Cloudflare offers to add one that you can edit later. Select Add.
  5. If you already have a record, Cloudflare adds a second rua address that sends reports to Cloudflare. Select Next.

DMARC Management only works on your main domain, such as yourbusiness.com, and needs Cloudflare DNS. You can still keep your own reporting address in the record alongside Cloudflare's.

What mistakes break a DMARC record in Cloudflare?

  • Two DMARC records exist. Providers ignore DMARC when there's more than one, so edit the existing record instead of adding another.
  • The Name is @ or blank, which puts the record on your main domain instead of _dmarc.
  • The reporting address is missing mailto:. It must be written as rua=mailto:you@yourbusiness.com.
  • The reporting inbox doesn't exist. Create the mailbox or alias first, or reports will bounce.
  • The record was added in Cloudflare, but the domain's nameservers point somewhere else, so Cloudflare's records aren't used.

How do I tighten the policy later?

After two to four weeks of reports showing your real email passing, edit the same record:

  1. Go to DNS → Records and select Edit next to the _dmarc TXT record.
  2. Change p=none to p=quarantine, keeping the rest of the value the same.
  3. Select Save.

Give quarantine a few weeks before you consider p=reject. Check with your team that invoices, contact form messages and newsletters still arrive. Our guide to reading DMARC reports shows what to look for before each step.

What should you do next?

Common questions

What do I enter as the Name for DMARC in Cloudflare?

Enter _dmarc. Cloudflare adds your domain, so the record lives at _dmarc.yourbusiness.com. Don't use @, which would put the record on your main domain, where providers won't look for DMARC.

Should the DMARC record be proxied?

No. Cloudflare's proxy setting only applies to A, AAAA and CNAME records. A TXT record like DMARC has no proxy option, so there's nothing to change.

Is Cloudflare DMARC Management free?

Cloudflare says DMARC Management is available on all plans for customers who use Cloudflare DNS. It works on your main domain only, not a subdomain set up on its own.

Will DMARC Management change my existing record?

It adds to it. Cloudflare says that if you already have a DMARC record, it adds a second rua reporting address that points to Cloudflare so it can process your reports. Your policy and your own reporting address stay as they are.

I bought my domain elsewhere. Do I add the record in Cloudflare?

Yes, if your domain's nameservers point to Cloudflare. DNS records only take effect at the company your nameservers point to, so records added at your registrar won't do anything in that case.

Sources

  1. Manage DNS records (Cloudflare Docs)
  2. Cloudflare DMARC Management (Cloudflare Docs)
  3. Enable DMARC Management (Cloudflare Docs)
  4. RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC) (IETF / RFC Editor)
  5. Set up DMARC (Google Workspace Admin Help)
Next steps

Keep building a safer business

Security is an ongoing process, but it doesn't have to be complicated. Run a free scan, fix what matters most, and check back for more guides.