[ DMARC & policy ]

DMARC and wildcard DNS: test the actual discovery path

Understand why a wildcard DNS answer is not a substitute for tracing the DMARC policy discovered for a specific sender domain.

By the EmailAuth research team

[ Key points ]

  • DNS synthesis and DMARC policy discovery are separate steps.
  • Existing nodes and record types change wildcard outcomes.
  • Test concrete Author Domain queries rather than literal asterisk patterns.
On this page

Wildcard DNS can make a name answer even when no record was explicitly created for that name. That matters when you are diagnosing DMARC: a TXT answer may be synthesized from a wildcard, and another nearby name may behave differently because part of the DNS tree already exists.

The right test starts with the domain in a real message’s From address. Trace each relevant query and its returned record set. Do not infer DMARC coverage from the presence of an asterisk in a zone export or from a website responding at an invented hostname.

Separate DNS synthesis from DMARC discovery

DNS wildcard processing determines whether a particular query can receive synthesized data. DMARC discovery determines which policy is applicable to the message. These are different steps. The first DMARC query prefixes _dmarc to the Author Domain; subsequent discovery follows the applicable protocol rules. RFC 9989, section 4.10.

A wildcard such as *.example.com is not a universal instruction to copy every record into every subdomain. DNS considers existing names, the closest enclosing name and the record type requested. A wildcard with only an address record does not supply a DMARC TXT policy. RFC 4592 §3.3.1 and RFC 4592 §3.3.3.

Also avoid treating _dmarc.*.example.com as a pattern that a DMARC receiver expands over all subdomains. Under RFC 4592 §2.1.1, a wildcard domain name has an asterisk as its leftmost label; DMARC does not search a catalogue of textual patterns to find a policy for each message.

Use existing names as deliberate test cases

Consider a synthetic zone with a TXT record at *.example.com containing an otherwise valid DMARC value. If branch.example.com does not exist and the closest encloser for a query at _dmarc.branch.example.com is example.com, that wildcard can be the source of a synthesized TXT answer.

Now suppose branch.example.com exists as a DNS node. The closest encloser for _dmarc.branch.example.com changes. The wildcard immediately beneath that closer node would be *.branch.example.com. The lookup does not simply fall back to *.example.com when that source is absent. This distinction is why broad wildcard assumptions fail. RFC 4592, section 3.3.1.

Under RFC 4592 §2.2.2, an empty non-terminal can count as an existing name too. A name can exist because records exist below it even when it has no record set of its own. Adding an apparently unrelated record deeper in the tree can therefore change which wildcard, if any, supplies an answer. Treat the scenario as an explanation of the algorithm, not as proof of how your provider’s current zone is configured.

Build a small discovery worksheet

Choose the actual sending domain, an explicitly configured subdomain, a delegated subdomain if relevant and a genuinely nonexistent test name. Avoid sending mail from invented domains merely to test DNS. For each case record:

  • The exact Author Domain being modeled.
  • The initial _dmarc-prefixed TXT lookup name.
  • Authoritative answer status and complete TXT record set.
  • Whether a matching owner is explicit or potentially synthesized, based on zone evidence.
  • Any fallback policy discovery and the resulting policy domain.
  • The implementation or specification used to interpret the result.

A positive DNS answer by itself may not disclose that it was synthesized. Use authorized zone inspection and authoritative responses together. Querying a literal asterisk name is not equivalent to testing the concrete name the receiving mail system will query.

Do not confuse existence with authorization

Domain existence affects more than the presence of an explicit TXT row. RFC 9989 distinguishes policy for existing and non-existent subdomains through its policy-discovery rules and sp/np handling. Wildcard answers can affect the DNS observations behind that distinction. Verify the actual existence and policy path before relying on np for a particular name. RFC 9989 §3.2.13 and RFC 9989 §4.10.1.

Even when a policy is discoverable, it does not authorize an application to send or create an aligned signature. Under RFC 9989 §5.3.5, a message still needs an authenticated aligned identity to pass DMARC. Use the alignment guide for that separate task.

Prefer an explainable policy layout

As an operational recommendation, use explicit records where precise control is required and document intended fallback behavior. Before changing a wildcard, inventory its other uses: the same DNS configuration may support unrelated services. Do not remove it as a mail-only cleanup without checking those dependencies.

Retest the worksheet after adding a DNS node, delegating a subdomain or changing the DMARC layout. Save the previous and new observations. The completion criterion is an explained policy path for each important sender domain, not a blanket statement that the wildcard covers everything.

Preserve a bounded conclusion

In the synthetic zone, the nonexistent branch allows *.example.com to supply the concrete query only under the stated closest-encloser and TXT assumptions. Once branch exists, the candidate becomes *.branch.example.com; absence there does not trigger wildcard fallback to the parent. DMARC may still perform its own separate policy discovery. No authoritative lookup or zone change was executed.

[ Takeaway ]

DNS synthesis and DMARC policy discovery are separate steps. Existing nodes and record types change wildcard outcomes. Test concrete Author Domain queries rather than literal asterisk patterns.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Test DNS structure as well as TXT text.

Existing nodes and record types affect synthesis. Preserve the zone evidence that explains why two nearby names yield different answers.

Next steps

  1. Compare explicit and nonexistent names.
  2. Account for child-zone delegation.
  3. Retest after namespace changes.

CISO / SecOps

Do not treat synthetic existence as approved sending.

A discovered policy is one input to DMARC evaluation. It neither proves an application is authorized nor supplies the authentication path needed by legitimate traffic.

Next steps

  1. Review intended policy boundaries.
  2. Challenge universal coverage claims.
  3. Keep sender inventory separate.

Founder / Non-technical

Ask which sender names were tested.

Wildcard coverage is easy to overstate. Request concrete results for the domains used by important workflows, not a general claim about every possible subdomain.

Next steps

  1. List important From domains.
  2. Ask for explained discovery results.
  3. Check dependencies before DNS cleanup.

[ FAQs ]

Frequently asked questions

Does *.example.com automatically protect every From subdomain?

No. DNS synthesis depends on existing names, closest-encloser rules and record type; DMARC then performs its own policy discovery.

RFC 4592 §3.3.1 RFC 4592 §3.3.3 RFC 9989 §4.10.1

Can a wildcard A record provide DMARC?

No. An address record is not a TXT policy. Inspect the TXT query that DMARC actually uses.

RFC 4592 §3.3.3 RFC 9989 §4.5

Is _dmarc.*.example.com a universal DMARC pattern?

No. Receivers query concrete _dmarc-prefixed names. They do not expand that text as a wildcard pattern for all sender domains.

RFC 4592 §2.1.1 RFC 9989 §4.10.1

Why does adding a DNS name change my wildcard result?

An existing node can change the closest encloser and therefore the eligible source of synthesis. An empty non-terminal can matter too.

RFC 4592 §2.2.2 RFC 4592 §3.3.1

Does querying the literal asterisk test the receiver’s lookup?

No. Test the concrete name derived from the actual From domain. A literal asterisk query is a different lookup.

RFC 4592 §2.1.1 RFC 9989 §4.10.1

Can wildcard DNS affect non-existent-subdomain policy?

It can affect the DNS existence observations used in the diagnosis. Verify the actual responses and current np discovery rules rather than relying on a zone-listing impression.

RFC 9989 §3.2.13 RFC 9989 §4.10.1

Should I delete a wildcard to fix DMARC?

Only after understanding its other dependencies and approving the change. Explicit policy records may provide clearer control without removing unrelated wildcard services.

What should I retain as evidence?

A worksheet of exact query names, authoritative responses, relevant zone structure, discovered policy domains and the receiver or specification used to interpret them.

[ Sources ]

Sources

  1. RFC 9989

    Sections §3.2.13 · §4.10 · §4.10.1 · §4.5 · §5.3.5

  2. RFC 4592

    Sections §2.1.1 · §2.2.2 · §3.3.1 · §3.3.3

[ Glossary ]

Glossary

Closest encloser
The longest existing ancestor of the query name used to determine the possible wildcard source of synthesis.

RFC 4592 §3.3.1

Empty non-terminal
An existing DNS node with no resource records of its own but with descendant nodes.

RFC 4592 §2.2.2

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base