Key takeaways
- Under RFC 9989, a subdomain is non-existent when a DNS query for it returns NXDOMAIN. Any record at the name, of any type, makes it exist.
- Fallback order:
npfor non-existent subdomains, otherwisesp, otherwisep.npnever applies to the organisational domain itself or to subdomains that exist. np=rejectis safe even on a domain still atp=none, because no legitimate mail can come from a name that does not exist.- A wildcard DNS record makes every subdomain exist, so
npnever applies under it. Check for wildcards before you rely onnp. - Receivers find the policy with the RFC 9989 DNS tree walk, not the Public Suffix List.
What counts as a non-existent subdomain under RFC 9989?
A subdomain is non-existent when a DNS query for it returns the response code NXDOMAIN. RFC 9989 Section 3.2.13 follows RFC 8020: if the answer is NXDOMAIN, the name and any possible subdomains below it do not exist. DMARC does not look for specific record types.
This is a common misunderstanding, so it is worth being precise. Many explanations say a subdomain "exists" if it has an A, AAAA or MX record. That is the RFC 5321 idea of a resolvable mail domain, and RFC 9989 Appendix A.4 explicitly contrasts the two. For DMARC, if any resource record exists for a name, the name exists. Appendix A.4 also spells out the difference between the two DNS answers you will see:
| DNS answer | Response code | Meaning for DMARC |
|---|---|---|
| NXDOMAIN | Name Error | The name does not exist, so np can apply |
| NODATA | NOERROR, empty answer | The name exists, just not with the queried type, so sp (or p) applies |
Three practical consequences follow:
- A TXT record alone makes a name exist. A subdomain with only an SPF record, or a site-verification TXT, is an existing subdomain.
- Names below a label make the label exist. If
selector1._domainkey.mail.example.comexists, thenmail.example.comanswers NOERROR (it is an empty non-terminal) and is treated as existing, even with no records of its own. - Publishing
_dmarc.sub.example.commakessub.example.comexist. A subdomain with its own DMARC record is, by definition, not covered by the parent'snp. It is covered by its own record.
How do np, sp and p fall back to each other?
np applies only to non-existent subdomains. If a record has no np tag, the receiver uses sp when present, and otherwise p. RFC 9989 Section 4.7 states this fallback in the np definition, and Section 4.10.1 confirms that without an applicable sp or np tag, the p policy is used for subdomains.
| Tag | Applies to | If the tag is absent |
|---|---|---|
p |
The domain the record is published for (and its subdomains unless sp or np says otherwise) |
Not applicable: RFC 9989 Section 4.7 marks p as recommended for every policy record |
sp |
Existing subdomains of the organisational domain | p applies |
np |
Non-existent subdomains of the organisational domain | sp applies if present, otherwise p |
All three take the same values: none, quarantine or reject. The np tag was imported from RFC 9091, the experimental Public Suffix Domain DMARC specification, which RFC 9989 obsoletes (Appendix C.5.1 and C.3).
The fallback matters in one specific case. A record such as v=DMARC1; p=reject; sp=none with no np tag gives non-existent subdomains none, because np falls back to sp before p. If you relax sp for a migration, add an explicit np=reject so the empty namespace does not get relaxed with it.
How does a receiver find the policy for invoices.example.com?
The receiver first looks for a DMARC record at the Author Domain itself, _dmarc.invoices.example.com. When there is none, it runs the RFC 9989 DNS tree walk up the hierarchy and applies the record it finds at the organisational domain, _dmarc.example.com. It then uses np if invoices.example.com returns NXDOMAIN.
In detail, Section 4.10.1 lists where the applicable record can come from, in order of preference: the Author Domain, the organisational domain of the Author Domain, and the PSD (public suffix domain) of the Author Domain. Section 4.10 says that if the Author Domain has eight or fewer labels, the walk starts at its immediate parent, and that Author Domains with more than eight labels do not cause more than eight DNS queries.
This replaces the old method. RFC 7489 relied on the Public Suffix List to find the organisational domain. RFC 9989 Appendix C.3 says that reliance on a PSL "has been replaced by a technique called a "DNS Tree Walk"". For the full walk, including how psd=y and psd=n stop it, see DMARCbis and public suffix domains.
What attack does np close?
np closes random-subdomain spoofing: an attacker sends mail as invoices.example.com, payroll.example.com or any other name you never created. Nothing legitimate sends from those names, so they fail DMARC, but before np they inherited whatever sp or p said, often none.
The attack works because recipients see a familiar organisational domain on the right of the address and trust the label on the left. A subdomain that never existed has no sender history and no monitoring, and on a domain still at p=none while senders are fixed, it has no enforced policy either. The attacker does not need to register anything.
With np=reject, a receiver that finds invoices.example.com returns NXDOMAIN applies reject to failing mail from it, whatever p and sp say. Normal DMARC logic still applies: a message passes with an aligned SPF or aligned DKIM result, and np only decides what happens to mail that fails. In practice nothing from a non-existent name can pass, because there is no SPF record or DKIM key there to authenticate it.
What should an np record look like?
For a domain already at enforcement, set np=reject explicitly so it stays strict even if you later relax sp for a subdomain project. For a domain still at p=none, add np=reject straight away: it protects the empty namespace while you finish the sender inventory for real mail.
A fully enforced domain:
v=DMARC1; p=reject; np=reject; rua=mailto:dmarc-reports@example.com
A domain still monitoring its real senders, with the non-existent namespace already locked:
v=DMARC1; p=none; np=reject; rua=mailto:dmarc-reports@example.com
A domain enforcing the organisational domain while existing subdomains are still being fixed:
v=DMARC1; p=reject; sp=quarantine; np=reject; rua=mailto:dmarc-reports@example.com
A parked or non-sending domain, where every level can be strict:
v=DMARC1; p=reject; sp=reject; np=reject; rua=mailto:dmarc-reports@example.com
None of these use pct, which RFC 9989 removed. Policy moves in whole steps from p=none to p=quarantine to p=reject, and t=y signals testing mode. For non-sending domains in detail, see should parked domains have a DMARC record?, and for real subdomains and sp, see DMARC for subdomains.
Why does wildcard DNS defeat the np tag?
A wildcard record such as *.example.com makes DNS answer for every name that is not otherwise defined, so a query for invoices.example.com no longer returns NXDOMAIN. Under RFC 9989 the name therefore exists, and the receiver applies sp (or p), not np. Your np=reject is never used.
This is a DNS consequence rather than a rule written in RFC 9989, which does not discuss wildcards. It follows directly from the existence test above: wildcard synthesis turns NXDOMAIN into an answer, or into NODATA for other record types, and both mean "exists". Wildcards are common on hosting setups that catch every subdomain for a website, and on some SaaS platforms.
If a client needs the wildcard, protect the namespace through sp instead. With sp=reject, synthesised names are covered, at the cost of having to authenticate every real subdomain that sends mail first. If the wildcard is a leftover, remove it, then confirm with dig that random names return NXDOMAIN.
How do psd and public suffix operators interact with np?
The psd tag tells the tree walk whether a record belongs to a public suffix domain. A public suffix operator (PSO) publishes psd=y. If an organisational domain below it has no DMARC record, the PSD record's policy applies, and its np covers subdomains that do not exist.
Section 4.10.1 allows the applicable record to come from the PSD when the Author Domain has no record and its organisational domain has none either. In that case the receiver takes sp if the Author Domain exists, or np if it does not, from the PSD's record. This is the use case np was originally designed for in RFC 9091: letting a suffix operator such as a government or brand registry block mail from names under it that were never registered.
Two points for domain owners. First, a PSD policy is a backstop, not a substitute: publish your own record with your own np. Second, the psd tag defaults to u. Section 4.7 describes psd=n as marking a domain that is not a PSD and is the organisational domain for itself and its subdomains, which you can use to pin the boundary in unusual hierarchies.
How do you test np with dig?
Run two queries. First confirm that the subdomain you want covered returns NXDOMAIN, then confirm the organisational domain's DMARC record contains np. If the first query returns NOERROR, the name exists, and np does not apply.
Check that a random label is really non-existent:
dig invoices-test-7f3a.example.com A +noall +comments | grep status
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41522
status: NXDOMAIN is what you want. status: NOERROR with an empty answer means the name exists (an empty non-terminal or a record of another type). NOERROR with an answer for a random label usually means a wildcard.
Then check the policy record:
dig _dmarc.example.com TXT +short
"v=DMARC1; p=none; np=reject; rua=mailto:dmarc-reports@example.com"
Also check that _dmarc.invoices-test-7f3a.example.com returns no DMARC record of its own, so the receiver walks up to the organisational record. Our DNS lookup tool runs the same queries in a browser.
How should an MSP roll out np across a client portfolio?
Treat np as the first enforcement step on every domain, because it carries no delivery risk unless a wildcard is in play. Inventory wildcards first, add np=reject to every DMARC record, then let aggregate reports confirm nothing legitimate is caught before moving p and sp.
A practical sequence:
- Inventory. For every client domain, record the current
_dmarcrecord and test a random label for NXDOMAIN. Flag any domain where random labels resolve. - Fix or document wildcards. Remove leftover wildcards. Where one is needed, note that
spis the only effective control. - Add
np=rejecteverywhere. Include domains atp=none. Use the DMARC generator for clean records, one per domain. - Lock parked domains fully. Apply
p=reject; sp=reject; np=rejectto non-sending domains. - Watch reports. Aggregate reports (RFC 9990) show the domains mail claims to come from. Spoofed non-existent subdomains appear there as failing traffic.
- Record the change. Note each record edit in the client's change log so the next engineer knows why
npdiffers fromp.
DMARC AI collects aggregate reports for all client domains in one multi-tenant view and classifies the sending sources, so you can see which subdomains appear in traffic before and after the change. For the wider service model, see DMARC for MSPs.
Frequently asked questions
Does a subdomain with only a TXT record count as existing?
Yes. RFC 9989 Appendix A.4 says that if any resource record exists for a domain, the domain exists. A subdomain with only an SPF or verification TXT record returns NOERROR, not NXDOMAIN, so the receiver applies sp or p to it, not np. Only NXDOMAIN names fall under np.
Can I use np=reject while the domain is at p=none?
Yes, and it is usually the right first step. np applies only to subdomains that return NXDOMAIN, and no legitimate mail can come from a name that does not exist. p=none keeps monitoring the organisational domain and real subdomains, while spoofed non-existent names are rejected immediately.
What happens if I leave out np?
Non-existent subdomains then fall back to sp if the record has one, and to p if it does not. On a domain at p=reject with no sp, that already means reject. On a domain at p=none, or with a relaxed sp, non-existent subdomains get that weaker policy.
Does the np tag replace sp?
No. They cover different names. sp sets the policy for subdomains that exist in DNS, np for subdomains that return NXDOMAIN. You can set them independently, for example sp=quarantine while real subdomains are fixed and np=reject from day one. Under a wildcard, only sp takes effect.
Do receivers still use the Public Suffix List to find the organisational domain?
Not under RFC 9989. Appendix C.3 says reliance on a PSL has been replaced by the DNS tree walk, which queries _dmarc records up the hierarchy. A receiver still running an older PSL-based implementation might reach a different answer, which explicit records on every sending domain avoid.
Next steps
np is the cheapest enforcement step in DMARCbis: one tag, no sender inventory, and real protection against spoofed subdomains. Confirm random labels return NXDOMAIN, remove stray wildcards, add np=reject to every record including those at p=none, and then use aggregate reports to plan the move of p and sp to enforcement, as described in the DMARC guide.