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
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.
Where the negative TTL actually comes from
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
BASH
# 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@ 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.
BASH
# 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 1800Why only some networks see it, and two things that stretch it
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
unbound-control; check which ones handle negative entries in your version. On a VPS or desktop using systemd-resolved, flush the local stub cache.
BASH
# 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-cachesipconfig /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.