[ DKIM ]

Diagnose DKIM verification failures caused by DNS availability

Capture time-specific DNS evidence and distinguish an unavailable key from an absent or invalid one.

By the EmailAuth research team · 3 min read

[ Key points ]

  • Retain each lookup’s time, resolver and signature identity.
  • A later success cannot reconstruct the earlier receiver view.
  • Keep lookup recovery, cryptographic verification and delivery decisions separate.
On this page

DKIM verification depends on retrieving public verification material through DNS. A signature can be cryptographically well formed yet remain unverifiable when the relevant lookup is unavailable. Investigate the DNS path and the time of the receiver's attempt before replacing keys or changing message content.

A successful lookup after an incident is useful recovery evidence, but it does not establish what happened during the failed attempt. Preserve the original authentication result, message, timestamp and any available resolver logs. The aim is to explain the observed failure without claiming visibility into a receiver's infrastructure that you do not have.

Establish the exact lookup and outcome

Read d and s from the affected DKIM-Signature and construct the selector lookup under _domainkey of d. Under RFC 6376 §3.6.2.1 and RFC 1034 §3.6.2, if the supported setup uses a CNAME, capture the chain and final verification answer. Include the response code, time, resolver and authoritative server where available.

RFC 6376 §6.1.2 distinguishes a query that fails to respond from a key record that does not exist. The former can yield TEMPFAIL and a later attempt; the latter requires a no-key PERMFAIL for that signature. RFC 8601 §2.7.1 temperror likewise describes a likely transient verification error. Do not turn all DNS-related failures into one missing-record diagnosis.

Compare views without overstating them

Check the authoritative zone and representative recursive resolvers. A difference can point to stale cached data, delegation inconsistencies or a problem reaching part of the DNS path. If a provider-managed target is involved, investigate that target as well as the customer-controlled alias.

Record evidence for potential causes rather than selecting one from the error label alone. A resolver's SERVFAIL, for example, needs further diagnosis; it is not proof that the key was deleted. DNSSEC validation (see RFC 4035 §5.5), delegation and transport problems can require the DNS operator's logs and expertise. Do not disable validation as a default fix merely to make one lookup succeed.

Follow a time-based example

Illustrative sequence: a receiver attempts to retrieve active1._domainkey.sender.example at 10:00 and reports a temporary key retrieval error. At 10:05, an administrator retrieves a valid key from a different resolver. Both observations can be true. The second establishes availability for that query at 10:05, not availability to the first receiver five minutes earlier.

By contrast, if the authoritative answer at the incident time establishes that the active selector is absent, waiting for a transient outage to clear may not solve the configuration problem. If the record is restored, negative caching under RFC 2308 §5 can also affect when other resolvers observe it. The example is a diagnostic timeline, not a measured outage or a promised recovery interval.

Check the rest of verification after recovery

Following RFC 6376 §6.1.2 and RFC 6376 §6.1.3, once key retrieval works, confirm that the returned record is usable and corresponds to the signer. A retrieved key can still be revoked, malformed or incompatible. A matching key cannot compensate for content modified after signing. Keep lookup, key validation, body-hash verification and signature verification as separate stages in the incident record.

When several signatures exist, one failed lookup does not necessarily remove every aligned authentication path. Under RFC 9989 §5.3.5, inspect the other signatures and SPF before concluding that DMARC failed. Under RFC 6376 §6.3 and RFC 9989 §5.4, receiver delivery policy is another separate decision; a transient DKIM problem does not guarantee either deferral or acceptance.

Close the outage with controlled tests

After the DNS operator's authorized repair, test the affected lookup through relevant views and send new messages through the original route. Record expected and observed results. Ask for DNS and provider incident evidence when the cause lies outside your administrative scope.

Keep an inventory of delegated selector targets and their owners so that the next alert reaches the right team. Monitor the dependency that actually failed, but describe the monitoring scope honestly: a periodic public query does not reproduce every receiver's cache, network or validation behavior. Closure should state what recovered, what evidence supports the diagnosis and what remains unobserved.

Preserve a bounded conclusion

Keep the 10:00 failure and 10:05 success as two records, each with resolver, query name, result and visibility limits. The five-minute gap is illustrative, not a recovery target. DNS TTL is a freshness interval, not a global revocation deadline: RFC 8767 §4 permits qualifying stale use. No resolver outage, recovery or mail test was measured.

[ Takeaway ]

Retain each lookup’s time, resolver and signature identity. A later success cannot reconstruct the earlier receiver view. Keep lookup recovery, cryptographic verification and delivery decisions separate.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Preserve time-specific observations

Later availability cannot reconstruct an earlier receiver’s DNS view.

Next steps

  1. Capture d, s and response details.
  2. Compare authoritative and recursive views.
  3. Retest verification after lookup recovery.

CISO / SecOps

Keep security controls during diagnosis

Weakening DNS validation can hide the actual problem and introduce risk.

Next steps

  1. Review proposed DNS changes.
  2. Require cause evidence before closure.
  3. Track provider-managed verification dependencies.

Founder / Non-technical

Route the incident to the dependency owner

A signing service may depend on DNS operated by a different team or vendor.

Next steps

  1. Identify the affected message flows.
  2. Find the authoritative DNS owner.
  3. Ask for recovery evidence and remaining gaps.

[ FAQs ]

Frequently asked questions

Is DNS timeout equivalent to no key?

No. Timeout is unavailability; an established absent record is a different verification outcome.

RFC 6376 §6.1.2

Does a later successful query disprove the outage?

No. It describes a different observation time and possibly a different resolver path.

Should I inspect a provider CNAME target?

Yes. The target can be unavailable even when the customer-side CNAME is present.

RFC 1034 §3.6.2

Does SERVFAIL prove deletion?

No. It requires further DNS diagnosis and may have several causes.

RFC 4035 §5.5

Should DNSSEC validation be disabled to fix DKIM?

Not as a default troubleshooting remedy. Diagnose the validation or DNS problem with the responsible operator.

Can DKIM still fail once DNS recovers?

Yes. Key validity, key matching and covered content must also verify.

RFC 6376 §6.1.2 RFC 6376 §6.1.3

Will every receiver defer a temporary DKIM error?

No. Verification and final message handling are distinct; receiver behavior and other signals matter.

RFC 6376 §6.3

What evidence should close the incident?

Keep the failed and recovered lookup observations, cause evidence, new-message results and explicit visibility limits.

[ Sources ]

Sources

  1. RFC 9989

    Sections §5.3.5 · §5.4

  2. RFC 6376

    Sections §3.6.2.1 · §6.1.2 · §6.1.3 · §6.3

  3. RFC 8601

    Sections §2.7.1

  4. RFC 1034

    Sections §3.6.2

  5. RFC 2308

    Sections §5

  6. RFC 4035

    Sections §5.5

  7. RFC 8767

    Sections §4

[ Glossary ]

Glossary

Temporary verification error
A likely transient verification problem, such as temporary inability to retrieve a public key; a later attempt may produce a result.

RFC 8601 §2.7.1

Negative caching
Retention of DNS non-existence or no-data answers under the negative-caching rules; it can delay observation of a restored record.

RFC 2308 §5

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