You add a new A record for shop.example.com, the authoritative nameserver answers correctly, and on your phone the subdomain works. On the office network, or for a customer in another city, it still says the name does not exist. This is not normal propagation. In many cases a resolver asked about the name before the record existed, got an NXDOMAIN answer, and is now holding on to that answer for a set amount of time.
That time is not the TTL of your new record. It comes from the SOA record of the zone. Once you know where to look, you can tell a customer roughly how long the stale answer can last. You can also tell whether something else is wrong.
What a resolver keeps when a name does not exist
A recursive resolver is the DNS server your device actually asks. It might be your ISP's resolver, the office DNS server, systemd-resolved on a VPS, or a public resolver. When it looks up shop.example.com, it eventually reaches the authoritative nameserver for example.com. If no record exists for that name at all, the authoritative server answers with response code NXDOMAIN, meaning non-existent domain.
That NXDOMAIN response does not come back empty. Under RFC 2308, the authoritative server puts the zone's SOA record (Start of Authority) in the authority section of the reply. The SOA tells the resolver how long it may treat the answer "this name does not exist" as valid. Storing that answer is called negative caching.
Negative caching exists for a good reason. Typos, malware lookups, and misconfigured software generate a steady flow of queries for names that will never exist. Without negative caching, every one of those queries would go back to the authoritative servers. The side effect is the problem this article covers. If the missing name gets created later, resolvers that already cached the NXDOMAIN keep returning it until the entry expires.
The state changes are simple:
- A client queries
shop.example.combefore the record exists. - The resolver gets NXDOMAIN plus the SOA, and stores a negative entry with a countdown.
- You create the record. The authoritative server now answers correctly.
- The resolver does not ask again. It serves NXDOMAIN from cache until the countdown reaches zero.
- The next query after expiry goes to the authoritative server and picks up the new record.
The key detail is step 1. Something has to query the name before it exists. More things do that than people expect. You might test the URL in a browser before adding the record. A monitoring check might start early. An SSL validation run might try every subdomain in the vhost list. Someone might paste the link into chat and trigger a preview fetch. That is also why some subdomains get skipped during certificate issuance, as covered in AutoSSL Skips the www or mail Subdomain? Check Where Its DNS Actually Points. A resolver that never saw the early query has nothing cached and resolves the new name immediately. That explains the split between networks.
Where the negative TTL actually comes from
An SOA record has its own TTL like any other record, plus seven fields of data: primary nameserver, responsible mailbox, serial, refresh, retry, expire, and minimum. The last field is the one people overlook.
In the original DNS specification, MINIMUM meant a floor for TTLs across the zone. RFC 2308 redefined it. Today it means the TTL for negative answers. The negative caching time is the lower of two values: the TTL of the SOA record itself, and the MINIMUM field. If the SOA has a TTL of 3600 and a MINIMUM of 86400, negative answers are cached for 3600 seconds. If both are 86400, a stale NXDOMAIN can stick for a full day.
That is the trap. Some zones are created with a long MINIMUM because the old meaning made a large value seem harmless. Templates also get copied between servers for years without anyone looking at them. The A records in the zone might have a 300-second TTL, so the owner expects changes within minutes. The negative TTL can still be hours.
A second layer sits on top of this. Resolvers usually cap how long they keep negative entries, whatever the SOA says. BIND has max-ncache-ttl and Unbound has cache-max-negative-ttl. Their defaults are commonly documented as a few hours for BIND and one hour for Unbound, but check the documentation for the version you run. A public or ISP resolver can use any cap its operator chooses, and you cannot see that setting from outside. So the SOA gives you the maximum the zone allows, and the resolver may enforce something shorter.
Reading both values with dig
Start with the SOA as published by the zone. The TTL is the second column. MINIMUM is the last number in the record data.
# Read the zone's SOA record (TTL is column 2, MINIMUM is the last field)
dig example.com SOA +noall +answer
# Illustrative output format (values are made up and round):
# example.com. 3600 IN SOA ns1.example.net. hostmaster.example.com. 2026110901 7200 3600 1209600 1800
In this illustrative example, the SOA TTL is 3600 and MINIMUM is 1800, so negative answers can be cached for up to 1800 seconds. If you query through a recursive resolver, the SOA TTL in that output may already be counting down. For the published value, add @ with one of the zone's authoritative nameservers.
Next, compare what the authoritative server says now with what a specific resolver is serving. The +norecurse flag asks the authoritative server directly without recursion. The authority section of the resolver's answer shows the remaining lifetime of its negative entry.
# What the authoritative server answers now (should be NOERROR with your new record)
dig @ns1.example.net shop.example.com A +norecurse +noall +comments +answer +authority
# What a specific recursive resolver is serving (replace with the resolver in question)
dig @192.0.2.53 shop.example.com A +noall +comments +authority
# Illustrative output format from a resolver holding a stale negative entry:
# ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4242
# ;; AUTHORITY SECTION:
# example.com. 1140 IN SOA ns1.example.net. hostmaster.example.com. 2026110901 7200 3600 1209600 1800
The 1140 in the authority section is the countdown. Run the command again a minute later and it should be about 60 lower. When it reaches zero, the next query should return the real record. That number answers the customer's question of how long this will take, at least for that resolver.
If the authoritative server itself returns NXDOMAIN, the cache is not the problem. Usually the record is in the wrong zone, the zone on that nameserver was not reloaded, or the domain's delegated nameservers are not the ones you edited. Check the delegation and the zone file before you blame caching.
Why only some networks see it, and two things that stretch it
Every resolver keeps its own cache. Your mobile carrier, the office DNS server, and a public resolver are separate machines with separate histories. Only the ones that saw a query for the name before it existed hold a negative entry. Large public resolvers also run many independent cache nodes, so two queries a few seconds apart can return different results depending on which node answers.
Two resolver behaviors can make a negative entry cover more names than the one that was queried.
The first is the NXDOMAIN cut from RFC 8020. If a resolver cached NXDOMAIN for dev.example.com, it may conclude that nothing under that name exists either. Later you add api.dev.example.com. The resolver can still answer NXDOMAIN for the new name, because it trusts the cached answer for the parent. Resolver support for this varies.
The second applies only to DNSSEC-signed zones. A signed NXDOMAIN carries NSEC or NSEC3 records that prove a range of names does not exist. With aggressive NSEC caching (RFC 8198), a validating resolver can reuse that proof to answer NXDOMAIN for other names in the same range without asking the authoritative server. So a subdomain nobody ever queried can still get a cached NXDOMAIN if its name falls inside a cached gap. Those NSEC records follow the same negative TTL rules, so the SOA values still set the upper limit.
In day-to-day support, the usual pattern is that the person who created the record tested it within seconds. Their resolver is the one that cached the NXDOMAIN. Everyone else sees the subdomain fine, and the person who did the work is the one who thinks DNS is broken.
Clearing a stale NXDOMAIN, or waiting it out
If you run the resolver, you can remove the entry yourself. For BIND, flush the single name instead of the whole cache. Unbound has its own flush commands through unbound-control; check which ones handle negative entries in your version. On a VPS or desktop using systemd-resolved, flush the local stub cache.
# BIND: drop cached data for one name (including a cached NXDOMAIN)
sudo rndc flushname shop.example.com
# systemd-resolved on the local machine
sudo resolvectl flush-caches
On Windows clients, ipconfig /flushdns clears the local cache. Browsers may keep a short-lived cache of their own. None of this touches the upstream resolver. If the ISP or office resolver holds the entry, flushing your laptop does not help. Some public resolvers publish a cache flush tool, so check their documentation. For ISP resolvers you usually just wait, and the dig countdown tells you how long.
Prevention is cheaper than cleanup. Create the record before anyone queries the name. That means before you test it in a browser, add it to an SSL request, or point monitoring at it. During migrations, the same idea appears in Pre-populating DNS Records on New Nameservers Before Registrar Cutover. It is also worth checking the SOA MINIMUM on zones you manage. A value somewhere in the range of several minutes to an hour is a common rule of thumb. It keeps negative caching useful without making new names wait for a day. The trade-off is slightly more query traffic for names that really do not exist.
When a new subdomain returns NXDOMAIN on some networks but not others, ask the authoritative server first. If it answers correctly, query the affected resolver and read the SOA TTL in the authority section. That number is how long the stale answer has left, and it is capped by the smaller of the zone's SOA TTL and MINIMUM fields. Compare it with the zone's own SOA, flush what you control, and keep the MINIMUM low enough that the next new record does not get stuck the same way.