DMARC

How to Publish a DMARC Record: A Step-by-Step DNS Guide

A practical walkthrough for adding a DMARC record to your domain: what to check first, how to build the TXT value, what to type in your DNS host's name field, how to verify the record, and what to do after the first reports arrive.

By MailConfig.pro TeamPublished 7 min read

On this page
  1. Before you start
  2. Step 1: Choose where reports go
  3. Step 2: Build the record
  4. Step 3: Add the TXT record at your DNS host
  5. Step 4: Check that it is live
  6. Step 5: Wait for the first reports
  7. Step 6: Move to enforcement
  8. Domains that never send email
  9. Common mistakes
  10. Publishing DMARC with MailConfig.pro

To publish a DMARC record, add one TXT record at _dmarc. followed by your domain, with a value such as v=DMARC1; p=none; rua=mailto:reports@example.com. Start with p=none and a working report address, confirm the record with a DMARC checker, then read the aggregate reports before you tighten the policy. The whole change takes a few minutes. The part that needs care is getting the name field and the report address right.

TXT_dmarc.example.com
v=DMARC1; p=none; rua=mailto:reports@example.com

The fastest way to get a correct value is to build it in the free DMARC record generator. It shows validation findings next to the record before you touch DNS.

Before you start

Check three things first. Each one saves a round of confusion later.

  1. SPF and DKIM. DMARC passes only when SPF or DKIM passes and the authenticated domain aligns with the domain in the From address. Publishing DMARC does not fix missing SPF or DKIM; it makes their gaps visible. How the three fit together is covered in the DMARC guide.
  2. An existing record. Run the DMARC checker on your domain. If a record is already there, edit it. A second record at the same name doesn't add anything: receivers that find more than one DMARC record discard them all.
  3. Access to your DNS host. That is wherever your domain's nameservers point: your registrar, a DNS provider such as a CDN, or your hosting company. It is not always the company that runs your email.

Step 1: Choose where reports go

The rua tag lists the addresses that receive aggregate reports: daily XML summaries of who sent mail as your domain and whether it passed. Without rua you publish a policy but learn nothing from it.

You have two options:

  • Your own mailbox, such as dmarc-reports@example.com. It works, but a busy domain receives many compressed XML files a day, and someone has to read them.
  • A DMARC reporting service, which gives you an address on its domain and turns the reports into a dashboard.

When the report address is on a different domain from the policy, for example rua=mailto:token@reports.example.net in the record for example.com, receivers first check that the other domain agreed to receive reports for you. That domain must publish a TXT record such as example.com._report._dmarc.reports.example.net with the value v=DMARC1, or a wildcard that covers every domain (RFC 9990, section 4). Without it, receivers ignore the address. A reporting service publishes this on its side; check that it does before you rely on it.

Step 2: Build the record

A DMARC record is a list of tag=value pairs separated by semicolons. v=DMARC1 must come first. These are the tags worth knowing when you publish your first record (RFC 9989, section 4.7):

Tag Example What it does
v v=DMARC1 Required, and must be first
p p=none Policy for the domain: none, quarantine or reject
rua rua=mailto:reports@example.com Where aggregate reports go. Separate several addresses with commas
sp sp=reject Policy for existing subdomains. Defaults to p
np np=reject Policy for subdomains that don't exist. Defaults to sp, then p
adkim, aspf adkim=r Alignment mode, r (relaxed, the default) or s (strict)
t t=y Test mode: asks receivers to apply one policy level lower

A good first record for a domain that sends mail:

TXT_dmarc.example.com
v=DMARC1; p=none; rua=mailto:reports@example.com

Leave out pct, rf and ri. Older guides still recommend them, but RFC 9989 removed all three. A receiver that follows only the current standard ignores pct, so a record such as p=quarantine; pct=25 may be applied to all failing mail there. Skip ruf (failure reports) at the start too: few receivers send them, and they can contain message content.

Step 3: Add the TXT record at your DNS host

In your DNS host's control panel, add a new record:

  • Type: TXT
  • Name / Host: _dmarc
  • Value: your record, for example v=DMARC1; p=none; rua=mailto:reports@example.com
  • TTL: your host's default, or 3600 seconds

The name field causes most failed setups. Most DNS hosts append your domain to whatever you type, so _dmarc becomes _dmarc.example.com. If you type the full _dmarc.example.com into such a field, the record ends up at _dmarc.example.com.example.com, where no receiver looks. A few hosts want the full name, sometimes with a trailing dot. If the panel shows a preview of the full name, read it before you save.

For a subdomain that needs its own policy, the name is _dmarc plus the subdomain, for example _dmarc.news for news.example.com. A subdomain without its own record is covered by the parent's record, through sp and np.

Step 4: Check that it is live

Query the record from outside your network:

dig +short TXT _dmarc.example.com

You should see exactly one answer that starts with v=DMARC1. Then run the DMARC checker again. It validates the syntax, the policy and the report destinations, including the external authorization from step 1. If you just changed an existing record, cached answers can linger until the old TTL expires; the DNS propagation checker shows what different public resolvers return.

Step 5: Wait for the first reports

Receivers that send aggregate reports do so at least once a day (RFC 9989, section 5.3.8), so expect the first ones within one to two days. Not every mailbox provider sends reports, and a domain that sends little mail may see only a few.

The reports list every source that sent mail as your domain. Some will be services you forgot about: a CRM, a helpdesk, a billing system. Each legitimate one needs aligned SPF or DKIM before you enforce. The method is in the guide on identifying unknown senders.

Step 6: Move to enforcement

p=none only observes. Protection starts at p=quarantine and p=reject. Move up once the reports show that your legitimate mail passes, and watch the reports after each change. The staged rollout, and what can go wrong at each stage, is the subject of the policy rollout guide.

Domains that never send email

Parked domains and brand-protection registrations are easy targets for spoofing, because nobody watches them. Lock them down completely. There is no need to start at p=none:

TXT_dmarc.example.org
v=DMARC1; p=reject; sp=reject; rua=mailto:reports@example.com

Add an SPF record of v=spf1 -all at the domain itself (RFC 7208), and if it receives no mail either, a null MX record (MX 0 ., RFC 7505).

Common mistakes

Mistake What happens Fix
Record at the root domain instead of _dmarc Receivers never find it Move it to _dmarc
Domain appended twice (_dmarc.example.com.example.com) Receivers never find it Enter only _dmarc in the name field
Two DMARC records Both are discarded Merge them into one
Missing mailto: in rua The address is invalid and no reports arrive Write rua=mailto:address
Report address on another domain without authorization Receivers ignore that address The receiving domain publishes the _report._dmarc record
Starting at p=reject on a sending domain Legitimate mail from unaligned services is rejected Start at p=none and read the reports first
Relying on pct Receivers that follow RFC 9989 apply the full policy Use t=y for a soft step, or move up one level at a time

Publishing DMARC with MailConfig.pro

MailConfig.pro takes care of the parts above that are easy to get wrong:

  • A reporting address for each domain. When you add a domain, you get a unique rua address. The authorization record that receivers check is already published on our side, so reports are accepted from the first day.
  • A record that keeps what you have. If your domain already has a DMARC record, the setup merges our reporting address into it instead of replacing your policy, and shows you the exact type, host and value to paste, including the short host name your DNS panel expects.
  • Checks at each step. The setup confirms that the record lists the reporting address and that reporting is authorized, then waits for the first report.
  • Reports you can read. Aggregate reports become a view of your sending sources with SPF and DKIM alignment, so you can see which services to fix before you enforce. When you are ready, guided enforcement suggests the next policy step, and you approve every DNS change yourself.

The free plan covers two domains, subdomains included, and paid plans add more domains and longer retention. Business adds DNS automation through a connected DNS provider. See plans and pricing. The DMARC generator and checker stay free without an account.

Frequently asked questions

Where exactly do I put a DMARC record?

In a TXT record at _dmarc followed by your domain, for example _dmarc.example.com. Most DNS hosts want only _dmarc in the name field because they append the domain themselves.

Can I have two DMARC records?

No. If a receiver finds more than one DMARC record at the same name, it discards them all and acts as if you had none. Edit the existing record instead of adding a second one.

How long until a new DMARC record works?

Receivers see it as soon as your DNS host serves it and any cached answer expires, usually minutes to an hour. The first aggregate reports normally arrive within one to two days, because receivers send them on a daily cycle.

Should I start with p=reject?

Not on a domain that sends mail. Start with p=none and a reporting address, fix the legitimate senders the reports reveal, then move to quarantine and reject. A domain that never sends mail can go straight to p=reject.

References

dmarc recorddnstxt recordruasetup

DMARC

What Is DMARC? How Email Authentication Fits Together

DMARC is a DNS record that ties SPF and DKIM to the domain in the visible From address, states what receivers should do with mail that fails, and requests reports. This guide covers alignment, the record syntax, policies, reporting and what happens when a domain has no record.

· 10 min read

DMARC

DMARC p=none vs quarantine vs reject: Rolling Out Enforcement

p=none asks for no change in handling and gives you reports, p=quarantine asks receivers to treat failing mail as suspicious, and p=reject asks them to refuse it. This guide covers when each fits, a staged rollout, what happened to pct, and the risks from forwarding and mailing lists.

· 9 min read

DMARC

How to Identify Unknown Senders in DMARC Aggregate Reports

A step-by-step method for the unfamiliar IP addresses in your DMARC aggregate reports: which XML fields matter, how to map an IP to a service with PTR, RDAP and ASN, how to separate legitimate senders from spoofing, and how to fix SPF and DKIM alignment.

· 7 min read

DNS security

SPF Hijacking: How Dangling CNAMEs and Typos Let Spoofing Pass DMARC

Some spoofed mail passes DMARC because attackers took over a name your DNS still trusts: a CNAME to an expired domain, a mistyped include, or a CIDR typo. How the takeover works, how to spot it in DNS and in DMARC aggregate reports, and how to close it.

· 8 min read