Skip to content

DMARC for Subdomains and Parked Domains

How sp and np control subdomain policy, when a subdomain needs its own record, and how to lock down domains that send no mail.

Published 7 min read

A subdomain without its own DMARC record inherits the policy of its organizational domain: sp applies to subdomains that exist, np applies to subdomains that do not exist, and p is the fallback for both. A subdomain needs its own record only when it needs a different policy or different report addresses. Domains that send no mail at all should be locked down with v=spf1 -all, a p=reject DMARC record and a null MX record.

This guide explains how receivers find the policy for a subdomain, how the newer np tag works, and the exact records for parked domains.

How receivers find the policy for a subdomain

Take a message with From: alerts@billing.example.com. A receiver following RFC 9989, the current DMARC standard, does this:

  1. Looks up _dmarc.billing.example.com. If a valid record exists there, it applies that record's p and stops.
  2. If not, it walks up the DNS tree (_dmarc.example.com, then _dmarc.com) looking for the organizational domain's record.
  3. On that record, it uses sp if billing.example.com exists, np if it does not, and p if the applicable tag is missing.

In practice, one record at _dmarc.example.com covers every subdomain you have and every subdomain an attacker might invent.

The three policy tags

Tag Applies to If absent
p The domain that publishes the record Treated as p=none
sp Existing subdomains of the organizational domain Falls back to p
np Non-existent subdomains of the organizational domain Falls back to sp, then p

RFC 9989 defines a non-existent domain the same way DNS does in RFC 8020: a query for the name returns NXDOMAIN, meaning neither the name nor anything under it exists.

sp only means something on the organizational domain's record. RFC 9989 notes that sp is ignored on records published at subdomains of an organizational domain, as a result of how policy discovery works (covered below).

What changed with RFC 9989

The original specification, RFC 7489, defined the organizational domain as the registered domain, found with a public suffix list. RFC 9989 replaces the list with a DNS tree walk: the receiver queries _dmarc at each level above the author domain and picks the organizational domain from the records it finds.

The parts that matter for domain owners:

  • The walk is bounded. A domain with more than eight labels does not cause more than eight queries. The receiver jumps straight to the last seven labels after the first lookup.
  • The organizational domain is normally the record with the fewest labels. For a.b.example.com with records at both b.example.com and example.com, the organizational domain is example.com, so its sp applies to a.b.example.com. The record at b.example.com covers b.example.com itself, nothing below it.
  • psd=n changes that. A record carrying psd=n declares itself an organizational domain. That lets a large organization delegate a branch such as eu.example.com to a separate team with its own sp and np. Receivers still on RFC 7489 do not know psd and will keep using the registered domain.
  • np is part of the core standard. It first appeared in the experimental RFC 9091, which RFC 9989 obsoletes. Receivers that implement only RFC 7489 ignore np and apply sp or p instead.
  • pct is gone, t is new. t=y asks receivers to apply the policy one level lower while you test. It affects p, sp and np alike. The policy guide covers it.

When a subdomain needs its own record

Most subdomains do not. Publish a separate _dmarc record on a subdomain when:

  • It needs a different policy during rollout. A new marketing subdomain can sit at p=none while the root is already at p=reject. Remove the override once it is fixed.
  • Its reports should go somewhere else. A business unit or vendor that manages news.example.com may want its own rua.
  • It is isolated on purpose. Putting a bulk sender on its own subdomain gives it a separate SPF record, separate reputation and, if needed, its own DMARC record.

A subdomain record looks like any other:

_dmarc.news.example.com.  IN  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

Keep in mind what does not inherit. SPF and DKIM are per hostname. A subdomain that sends mail needs its own SPF record, and its senders need DKIM keys that sign with that subdomain or the parent domain. Only DMARC policy flows down from the parent.

Example records

Goal Record at _dmarc.example.com
Monitor everything v=DMARC1; p=none; rua=mailto:dmarc@example.com
Enforce on the root, keep monitoring subdomains v=DMARC1; p=reject; sp=none; rua=mailto:dmarc@example.com
Enforce everywhere v=DMARC1; p=reject; rua=mailto:dmarc@example.com
Monitor real subdomains, reject invented ones v=DMARC1; p=reject; sp=none; np=reject; rua=mailto:dmarc@example.com

The last row is the main use for np. Attackers often spoof subdomains that do not exist, such as secure-login.example.com, because nothing is configured there. With np=reject, those messages fail hard while your real subdomains stay in monitoring until their senders are fixed.

Be careful with sp=none as a long-term setting. It leaves every existing subdomain open to spoofing. Use it as a temporary step and move to sp=reject (or drop sp so p applies) when reports are clean. The DMARC generator builds any of these records.

Wildcard DNS and np

np depends on NXDOMAIN. If your zone has a wildcard record such as *.example.com, every invented subdomain resolves and counts as existing, so sp applies instead of np. If you rely on np, check whether your DNS host or CDN publishes wildcards.

Locking down a domain that sends no mail

Parked domains, defensive registrations, old brand names and domains used only for a website are easy spoofing targets because nobody watches them. Four records shut them down.

1. SPF: authorize nobody

parked.example.  IN  TXT  "v=spf1 -all"

Any message using this domain as the envelope sender fails SPF. This costs no DNS lookups.

2. DMARC: reject everything

_dmarc.parked.example.  IN  TXT  "v=DMARC1; p=reject;"

With p=reject and no sp or np, the same policy covers every subdomain, existing or not. Adding rua is optional. Reports from a parked domain show you who is trying to spoof it, which is useful, but every row will be a failure by design. If the reports go to a different domain, that domain must authorize them.

3. Null MX: accept no mail

RFC 7505 defines a null MX record, a single MX with preference 0 and a target of .:

parked.example.  IN  MX  0 .

It tells senders the domain accepts no mail, so they fail immediately instead of retrying. RFC 7505 says a domain with a null MX must not publish any other MX records. It also warns that receivers may reject mail whose envelope or From domain has a null MX, which is exactly the outcome you want on a parked domain, and why you should not use a null MX on a domain that sends.

4. DKIM: publish nothing

A non-sending domain does not need a DKIM record, and there is nothing to lock down. A DKIM signature only passes if it verifies against a public key published under the signing domain. With no key at <selector>._domainkey.parked.example, any signature claiming d=parked.example fails, so DKIM can never produce an aligned pass for an attacker.

Some guides recommend an empty wildcard key such as *._domainkey TXT "v=DKIM1; p=". It is not needed. An empty p= means "this key is revoked", and a missing key already gives the same result. Microsoft's guidance for parked domains is likewise to publish no DKIM records.

The one case where p= is useful: a domain that used to send. If an old selector still has a key in DNS, delete it, or replace it with an empty p= on that specific selector to revoke it explicitly.

Subdomains of parked domains

DMARC already covers them through inheritance. SPF does not: v=spf1 -all at the root says nothing about www.parked.example. Under a p=reject DMARC policy this does not matter much, since a message using www.parked.example still has no aligned pass. If you want explicit SPF on subdomains as well, publish v=spf1 -all on each hostname that exists. A wildcard TXT record can cover the rest, with the side effect on np described above.

The full set

parked.example.         IN  TXT  "v=spf1 -all"
_dmarc.parked.example.  IN  TXT  "v=DMARC1; p=reject;"
parked.example.         IN  MX   0 .

Check each domain afterward with the SPF checker, the DMARC checker and the MX lookup, or run all of them at once with a domain scan.

Common mistakes

  • Leaving sp=none in place after the rollout. Subdomains stay spoofable.
  • Assuming SPF inherits. It does not. Each sending hostname needs its own SPF record.
  • Expecting an intermediate record to cover deeper subdomains. Without psd=n, a record at b.example.com covers only b.example.com.
  • Publishing a null MX on a domain that sends. Receivers may reject your mail.
  • Forgetting defensive registrations. Every domain you own and do not send from should get the lockdown set.
  • Relying on np with wildcard DNS. Invented subdomains will resolve and fall under sp.

For the full rollout on sending domains, see how to set up DMARC and the record examples.

Lock down a parked domain in a few minutes with the free DMARC generator.

Check your domain now