# Negative DNS Caching: Why a New MX Record Looks Missing

URL: https://email-validation.org/guides/negative-dns-caching/
Updated: 2026-11-27

> Documentation index: https://email-validation.org/llms.txt

You just added an MX record. Your authoritative name servers return it, but a recursive resolver still says there is
none. That resolver may have cached an earlier negative answer, and how long it may keep that answer comes from the
zone's SOA record, not from the TTL on your new MX record. First find out which answer you actually got: a name that
does not exist, a name with no MX records, a failed lookup and a null MX mean different things for mail. Treating all
four as "invalid address" can turn a short DNS change into a permanent failure.

## What a resolver can cache

A recursive resolver does the DNS lookup for an application; an authoritative server answers for the zone it serves.
When a resolver learns that a name or a record does not exist, it can remember that negative answer so it does not
ask again straight away. [RFC 2308](https://www.rfc-editor.org/info/rfc2308/) defines these negative answers and how
long they may be cached.

A fictional example: you control example.com and want to receive mail at orders@example.com. Before you add an MX
record, a resolver asks for the MX records of example.com. The name exists, because your website uses it, but it has
no MX record yet, so the resolver gets a negative answer for that record type. Five minutes later you add the MX
record. Your authoritative server returns it at once, while that resolver keeps serving the old negative answer until
its cached entry expires.

Different resolvers may have asked at different times, or not at all. Use their disagreement to find the problem
instead of waiting for one universal "propagation" timer.

## Four answers that look like "no MX"

| Answer | What it means | What it is not |
| --- | --- | --- |
| NXDOMAIN | The name does not exist. A cached NXDOMAIN answers any later query for the same name and class, whatever the record type (RFC 2308, section 5). | Proof that the domain will never receive mail: check the spelling, and compare with a fresh answer from the authoritative server. |
| NOERROR with no MX data (NODATA) | The name exists but has no record of the type asked for. This cache entry is kept per name, type and class, so an A or AAAA lookup can still succeed (RFC 2308, section 5). | The end of the story: with no MX records at all, SMTP treats the domain as having an implicit MX that points to the domain itself ([RFC 5321](https://www.rfc-editor.org/info/rfc5321/), section 5.1). A web address alone does not show that a mail server is listening there. |
| SERVFAIL or a timeout | The lookup failed. Delegation errors, DNSSEC validation failures and unreachable servers all end here. | An answer that the name or record is missing. Treat it as undecided while you investigate. |
| Null MX (`0 .`) | A positive answer: the domain declares that it accepts no mail ([RFC 7505](https://www.rfc-editor.org/info/rfc7505/), section 3). | A missing MX: because an MX record is present, the implicit-MX rule does not apply (RFC 5321, section 5.1). |

Failed lookups have their own caching rule. [RFC 9520](https://www.rfc-editor.org/info/rfc9520/) (section 3.2), which
updates RFC 2308, requires resolvers to cache resolution failures for at least 1 second and never for longer than
5 minutes. It also says NXDOMAIN and NODATA are not resolution failures (section 2). So the 5-minute limit is separate
from the SOA-based TTL of an ordinary negative answer.

A null MX makes mail to the domain fail immediately. RFC 7505 (section 4.1) says a server rejecting such a recipient
should use reply code 556 with the enhanced status code 5.1.10. If a domain meant to start receiving mail still shows
an old null MX on some resolver, that is a cached positive answer, not negative caching
([null MX explained](https://email-validation.org/guides/null-mx/)).

## Where the negative TTL comes from

For a negative answer, the authoritative server must include the zone's SOA record in the authority section of its
response (RFC 2308, section 3). The time a resolver may cache that answer is the smaller of the SOA record's own TTL
and its MINIMUM field (section 5). RFC 2308 (section 4) redefined MINIMUM as exactly this: the TTL for negative
answers. Both values belong to the old negative answer, not to the MX record you publish afterwards.

A fictional zone has an SOA TTL of 3,600 seconds and a MINIMUM of 900 seconds, so its negative TTL is 900 seconds. If
a resolver cached the negative answer at 09:00 UTC, it can still serve it at 09:05 with about 600 seconds left.
Giving the new MX record a 60-second TTL at 09:04 does not shorten that cached entry. And you cannot assume every
resolver cached the answer at 09:00.

## Compare authoritative and recursive answers

During a planned change, note the zone, the query type, the time and what you expect to see. Then, on a domain you
administer:

1. Ask the zone's authoritative server for the MX records of the exact recipient domain. Check that the answer is
   authoritative and that the hosts and preferences make sense.
2. If the zone has several authoritative name servers, ask each of them. If they disagree, fix the zone or its
   publication first: waiting for caches to expire does not make name servers agree.
3. Ask the recursive resolver used by the system that reported the problem. Look at the response code and the answer
   section, and, if it still returns a cached negative answer, at the SOA record and the remaining TTL.
4. If the authoritative servers agree and the resolver's negative TTL is counting down, check again after it expires.
   If the resolver returns SERVFAIL or stalls, investigate the resolution path instead.
5. Once the MX record shows, check that your mail service really accepts the mail. MX routing, mailbox status and
   inbox placement are separate checks.

For what an MX preference or exchange host means, see the glossary's
[MX record](https://email-validation.org/glossary/mx-record/), which also explains the implicit MX.

## Keep the answers apart in a verification workflow

Keep three cases apart: a DNS lookup that could not finish, an explicit "no mail" declaration, and a domain that has a
possible mail route. Record which resolver saw which answer, and when. That gives you a sound reason to check again
later, without promising a fixed recovery time or treating a passing result as the mailbox's permanent state
([verifying an address without sending](https://email-validation.org/guides/verify-email-without-sending/)).

## Questions

### Why does my new MX record not show on every resolver?

A resolver that asked before you added it may have cached the negative answer. It keeps that answer for the smaller
of the SOA record's TTL and its MINIMUM field (RFC 2308, section 5), whatever TTL the new record has.

### Is SERVFAIL the same as "no MX record"?

No. SERVFAIL means the lookup failed, not that a record is missing. RFC 9520 caps how long a resolver may cache such
a failure at 5 minutes.

### Can I make resolvers drop a cached negative answer sooner?

Not from your zone: the TTL was fixed when the answer was cached. For future changes, a smaller SOA MINIMUM or SOA
TTL shortens negative caching. If you run the resolver yourself, you can usually clear its cache.

## Try it

See what a public resolver currently returns for a domain's MX records with the [MX lookup](https://email-validation.org/tools/mx-lookup/).
Right after a change it can show a cached answer too, so compare it with your authoritative servers. Or check an
address with the free [email checker](https://email-validation.org/email-checker/).

## Related

- [Glossary: MX record](https://email-validation.org/glossary/mx-record/).
- [Glossary: null MX](https://email-validation.org/glossary/#null-mx).
- [Null MX explained](https://email-validation.org/guides/null-mx/).

## Related guides

- [Null MX records explained](https://email-validation.org/guides/null-mx/)
- [Verify an email address without sending a message](https://email-validation.org/guides/verify-email-without-sending/)
- [Greylisting explained](https://email-validation.org/guides/greylisting/)
- [The SPF 10-lookup limit explained](https://email-validation.org/guides/spf-lookup-limit/)
- [Catch-all emails explained](https://email-validation.org/guides/catch-all-emails/)
- [All guides](https://email-validation.org/guides/)

## Sources

- [IETF: RFC 2308, Negative Caching of DNS Queries](https://www.rfc-editor.org/info/rfc2308/): sections 2 (negative
  answer types), 3 (the SOA in the authority section), 4 (the SOA MINIMUM field), 5 (caching and its TTL).
- [IETF: RFC 9520, Negative Caching of DNS Resolution Failures](https://www.rfc-editor.org/info/rfc9520/): sections 2
  (what counts as a failure) and 3.2 (caching for 1 second to 5 minutes).
- [IETF: RFC 5321, Simple Mail Transfer Protocol](https://www.rfc-editor.org/info/rfc5321/): section 5.1 (MX
  lookup and the implicit MX).
- [IETF: RFC 7505, A "Null MX" No Service Resource Record](https://www.rfc-editor.org/info/rfc7505/): sections 3
  (the record) and 4.1 (rejecting with 556 and 5.1.10).

_How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text._

## Get up to 500 free credits. No card needed.

New accounts get 500 free credits (100 when you sign up with a free email provider such as Gmail, Outlook or Yahoo, another personal mailbox such as a paid one like Fastmail or one from your internet provider, or an address from a relay or alias service). Try it on your own list before you buy. [Create your account](https://email-validation.org/signin/?new=1) or [open the free email checker](https://email-validation.org/email-checker/).
