Home / Fix guides / Domain, DNS and email deliverability

How to add a DMARC record to my domain

Add a DMARC record by creating a TXT record named _dmarc in your domain's DNS with the value v=DMARC1; p=none; rua=mailto:you@yourdomain.com. It takes a few minutes and does not change how your email works until you choose a stricter policy.

A missing DMARC record means your domain has not told receiving mail servers what to do with email that claims to come from you but fails authentication. Your website looks fine, so the problem is easy to miss. The signs show up in email: messages from you landing in spam, warnings or rejections from Gmail and Yahoo, or customers receiving fake invoices that appear to come from your address.

What DMARC is and why it matters

DMARC (Domain-based Message Authentication, Reporting and Conformance) is a short line of text stored in your DNS. It builds on two other checks, SPF and DKIM, which prove an email was sent by a server you approved. DMARC adds two things: a policy that says what to do when those checks fail, and reports that show who is sending email as your domain.

Without it:

  • Anyone can send email that appears to come from you@yourdomain.com, and receivers have no instruction from you about how to treat it.
  • Your genuine email is more likely to be filtered, because mailbox providers trust domains that publish a DMARC policy more than ones that do not.
  • Gmail and Yahoo require DMARC from anyone who sends email in large volumes, and it is increasingly expected from smaller senders too.
  • You have no visibility into which services (your newsletter tool, invoicing app, contact form) send email on your behalf.

For a small business, the practical cost is lost enquiries, missed quotes and a damaged reputation when someone spoofs your name.

How to check if you are missing it

These ways are free and take a minute:

  1. Use a DMARC lookup tool such as the one from MXToolbox. Type your domain and it will say whether a record exists.
  2. Use the Google Admin Toolbox Dig tool, choose record type TXT, and look up _dmarc.yourdomain.com.
  3. On a computer with a terminal, run nslookup -type=TXT _dmarc.yourdomain.com (Windows) or dig TXT _dmarc.yourdomain.com +short (Mac and Linux).

A working record starts with v=DMARC1. If you get no answer, "non-existent domain" or nothing starting with that text, the record is missing.

SiteMonday checks this in week 10 (domain, SSL and email deliverability) and lists it in your ranked fix list, with a plain explanation of what it found.

How to add a DMARC record

The steps are the same everywhere, only the screens differ. You need access to wherever your DNS is managed. That is usually your domain registrar, your hosting control panel, or a service such as Cloudflare. If you are not sure, look at your domain's nameservers (see our guide on nameserver problems). Whoever runs those nameservers is where the record goes.

  1. Before you start, confirm SPF and DKIM are set up for the services that send your email. DMARC passes only if at least one of them passes and matches your domain.
  2. Open the DNS settings (often called DNS, DNS Management, Zone Editor or Advanced DNS).
  3. Add a new record of type TXT.
  4. In the Name or Host field, enter _dmarc. Most providers add your domain automatically. If yours asks for the full name, enter _dmarc.yourdomain.com.
  5. In the Value field, paste your policy (see below).
  6. Leave the TTL on automatic or the default, and save.

A safe starting value is:

v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com

What each part means:

  • v=DMARC1 identifies the record. It must come first.
  • p=none means monitor only. Nothing is blocked or moved to spam because of DMARC. This is the right place to start.
  • rua= is the address that receives daily summary reports. Use a mailbox that exists, ideally a dedicated one, because reports can be frequent.

Have only one DMARC record per domain. Two records cause both to be ignored.

Platform notes

  • Google Workspace: Google generates nothing for you here. You add the TXT record at your DNS host. See the Google Workspace guide.
  • Microsoft 365: Microsoft does not publish DMARC for you either. Add it at your DNS host. See the Microsoft 365 guide.
  • Cloudflare: Open the domain, go to DNS, then Records, and add the TXT record. Set it to DNS only, which is the only option for TXT.
  • GoDaddy and Namecheap: Look for DNS Management (GoDaddy) or Advanced DNS (Namecheap), then add a TXT record with host _dmarc.
  • cPanel: Use Zone Editor, then Manage, then Add Record. Some cPanel versions have an Email Deliverability page that can suggest records.
  • WordPress: DMARC is not a WordPress setting. It lives in DNS, not on the site. An SMTP or email plugin may help your emails pass SPF and DKIM, but the DMARC record still goes at your DNS host.

Names of menus vary between versions and providers, so search your provider's help for "add TXT record".

How to confirm it worked

DNS changes usually show up within minutes, though they can take a few hours depending on the TTL. Repeat the lookup of _dmarc.yourdomain.com. You should see your full value returned, starting with v=DMARC1.

Next, send a test email from your domain to a Gmail address, open it, choose Show original, and look for DMARC: PASS. If it says fail, the cause is usually a sending service that is not covered by SPF or DKIM, or one that signs with a different domain. Our guide on DMARC alignment failures covers that.

Within a day or two, you should start receiving reports at your rua address. They are XML files and hard to read by eye, so many people use a DMARC report reader service to turn them into a list of senders.

Moving beyond monitoring

p=none gets you the record and the reports, but it does not stop spoofing. Once the reports show that all your legitimate senders pass, tighten the policy in steps:

  1. p=none: monitor only.
  2. p=quarantine: failing mail goes to spam.
  3. p=reject: failing mail is refused.

Move slowly and leave a few weeks at each stage. Jumping straight to reject can block your own invoices or newsletters if a sender was missed.

How to stop it coming back

  • Keep a list of every service that sends email as your domain, and check it whenever you add a new tool.
  • Do not delete DNS records during a host or registrar move. Copy the whole zone first, including TXT records.
  • Review DMARC reports now and then to spot unknown senders.
  • Re-check after any change to email provider, website platform or nameservers.
  • Set a reminder to run the lookup every few months. SiteMonday repeats its domain and email check on the same calendar week each year, which can serve as that reminder.

Step by step for your platform

Questions

Will adding a DMARC record break my email?

Not with `p=none`, which only monitors and reports. Problems happen only if you later move to `quarantine` or `reject` before all your legitimate senders pass SPF or DKIM.

Do I need DMARC if I only send a few emails?

Yes, it is still worth having. It helps protect your domain from being spoofed and shows mailbox providers that you manage your email properly.

Where do I put the DMARC record?

In the DNS settings of whoever runs your domain's nameservers, as a `TXT` record named `_dmarc`. This is usually your registrar, hosting provider or Cloudflare.

Can I have more than one DMARC record?

No. A domain should have exactly one record at `_dmarc`. If there are two, receivers may ignore both, so merge them into one.

How long until my DMARC record works?

Often within minutes, but allow a few hours for DNS to update everywhere. Reports from large providers usually start arriving within a day or two.

Do I need to set up SPF and DKIM first?

Yes, ideally. DMARC passes only when SPF or DKIM passes and matches your domain, so set up [DKIM](/fix/dkim-not-set-up/) and SPF for your sending services before tightening the policy.

Related problems