Under RFC 9989 DMARC, with a record only at the parent domain, which tag sets the policy for existing versus non-existent subdomains?
answer
- the parent's record reaches down
- existing versus NXDOMAIN
- np falls back to sp, then p
- a subdomain's own record wins
basics
~20 sA subdomain without its own DMARC record is covered by the organizational domain's record: sp if the subdomain exists, np if its lookup returns NXDOMAIN. A missing np falls back to sp, a missing sp to p.
solid answer
~40 sThe receiver first queries `_dmarc.` plus the `From:` domain itself. If a subdomain such as `shop.example.com` has no record, the DNS tree walk finds the organizational domain's record, here `_dmarc.example.com`, and because the `From:` domain is a subdomain of it, the policy comes from `sp` if the subdomain exists or `np` if it does not. Existence follows RFC 8020: a name is non-existent when its query returns NXDOMAIN, and any record of any type makes it exist; RFC 9989 explicitly does not use the MX, A or AAAA test. If `np` is absent, `sp` applies; if both are absent, `p` applies. `np` came from RFC 9091 and is part of RFC 9989 (May 2026); a receiver on RFC 7489 ignores it and uses `sp` or `p`.
code
dns · 5 lines; parent record of a holding company
_dmarc.example.com. 3600 IN TXT "v=DMARC1; p=reject; sp=quarantine; np=reject; rua=mailto:[email protected]"
; a product subdomain with its own record: its p governs mail From pay.example.com
_dmarc.pay.example.com. 3600 IN TXT "v=DMARC1; p=none; rua=mailto:[email protected]"go deeper
Recall that sp covers subdomains that exist and np covers names that do not, both read from the parent's record.
Explain the fallback chain np to sp to p, the NXDOMAIN test for existence, and that a subdomain's own record replaces the parent's for that name.
Show you can predict the outcome for any From domain against a real record set, including receivers on RFC 7489 that ignore np.
Weigh setting np stricter than sp: near-zero cost where nothing legitimate sends, while sp still protects real subdomains under remediation.
## Which record covers a subdomain Under **RFC 9989** (May 2026), DMARC policy discovery has a fixed order of preference. The record applied to a message is the one found at: 1. the **Author Domain**, the domain in the `From:` header field; 2. the **Organizational Domain** of the Author Domain; 3. the **Public Suffix Domain** above it, when a public suffix operator publishes a record with `psd=y`. The receiver first queries `_dmarc.<Author Domain>`. If a valid record is there, its `p` tag gives the policy and the parent's subdomain tags never come into play. If not, the receiver walks up the DNS tree to find the organizational domain's record (how that walk chooses the organizational domain is a separate question). When the record it uses belongs to a domain of which the Author Domain is a subdomain, the policy comes from a subdomain tag, not from `p`. ## sp, np and the fallback chain | Author Domain | Tag consulted first | If that tag is absent | |---|---|---| | The organizational domain itself | `p` | treated as `p=none` when the record has a valid `rua`, otherwise no DMARC processing | | An **existing** subdomain with no record of its own | `sp` | `p` | | A **non-existent** subdomain | `np` | `sp`, and if that is absent too, `p` | RFC 9989 section 4.7 says `np` "applies only to non-existent subdomains of the Organizational Domain queried and not to either existing subdomains or the domain itself", and `sp` "applies only to existing subdomains". Both use the same values as `p`: `none`, `quarantine` or `reject`. ## What counts as non-existent This is where confident answers go wrong. RFC 9989 uses the DNS meaning from RFC 8020, not the mail meaning from RFC 5321: - A name is **non-existent** when a query for it returns **NXDOMAIN** (rcode Name Error), and then every name below it is non-existent too. - A **NODATA** answer (rcode NOERROR, no records of the type asked for) means the name exists. - If **any** record of any type exists at a name, the name exists. RFC 9989 Appendix A.4 explicitly declines the RFC 5321 idea that only names with MX, A or AAAA records exist. So `shop.example.com` with only a TXT record exists and gets `sp`; `billing-alerts.example.com`, which was never created, returns NXDOMAIN and gets `np`. ## A worked example A holding company publishes one record at its parent: ```dns _dmarc.example.com. 3600 IN TXT "v=DMARC1; p=reject; sp=quarantine; np=reject; rua=mailto:[email protected]" ``` For mail that fails DMARC: - `From: [email protected]` gets `reject` from `p`. - `From: [email protected]`, where `shop.example.com` exists and has no `_dmarc` record, gets `quarantine` from `sp`. - `From: [email protected]`, a name that returns NXDOMAIN, gets `reject` from `np`. - If `pay.example.com` publishes its own `_dmarc.pay.example.com` record with `p=none`, mail `From: pay.example.com` gets `none` from that record, whatever the parent's `sp` says. Remove `np` and the forged non-existent name would get `quarantine` from `sp`; remove `sp` as well and it would get `reject` from `p`. ## Revisions and receivers that differ - `np` was introduced by RFC 9091 (PSD DMARC, Experimental) and became part of DMARC itself in RFC 9989, which obsoletes RFC 9091. - RFC 7489's only policy tags were `p` and `sp`. A receiver still implementing it ignores `np` as an unknown tag and applies `sp`, or `p`, to non-existent names. - RFC 9989 notes that `sp` is ignored on records published at subdomains below an organizational domain, because discovery uses the organizational domain's record for names beneath them. ## Why it matters for the domain owner Non-existent names are a common choice in forged mail precisely because legitimate systems should not send from them, and before `np` the only way to cover them was `sp`, which also bound real subdomains. `np` lets an owner set the strictest policy where nothing legitimate can break while keeping a gentler `sp` for subdomains still being brought into line. To predict which tag a receiver will use for a given `From:` domain, an administrator can check three things in its own zone: 1. Is there a valid record at `_dmarc.` plus that exact name? If so, its `p` applies. 2. Does the name itself resolve to anything at all, or does a query return NXDOMAIN? 3. Which of `sp` and `np` does the organizational domain's record carry, and which falls back to which?
- Does a subdomain with only a TXT record and no MX or A record count as existing for DMARC's np tag?Yes. RFC 9989 follows RFC 8020: a name is non-existent only when its query returns NXDOMAIN. Any record of any type, including a lone TXT, makes the name exist, so it gets `sp` rather than `np`. Appendix A.4 explicitly rejects the RFC 5321 test that only MX, A or AAAA records count.
- A subdomain publishes its own DMARC record with p=none while the parent has sp=reject. Which wins for mail From that subdomain?The subdomain's own record. Discovery queries the Author Domain first, and a valid record there supplies the policy from its `p` tag, so the parent's `sp` is never consulted for that exact name.
- A subdomain without an MX record counts as non-existent
- When np is absent, non-existent subdomains get no DMARC policy
- The parent's sp overrides a subdomain's own DMARC record
- sp applies to the organizational domain as well as its subdomains
- np has been part of DMARC since RFC 7489