
Your website opens on a mobile connection but fails in the office. Or a customer still reaches the old server after a migration while you reach the new one. “Wait for DNS to update” describes one possibility. DNS diagnosis requires specifics: the exact name queried, the server answering, the response and how long that response can remain usable.
The dig utility helps separate the source of DNS information from intermediate caches. It does not, by itself, establish that HTTPS, the application or the visitor’s connection works. Isolate DNS first, then investigate the next layer.
Start with exactly the same question
Record the complete failing hostname. The names example.com and www.example.com can have different records. Check A and AAAA separately: a correct IPv4 address does not repair an incorrect IPv6 path. Also record the time, network and error message. Receiving no DNS answer is different from receiving an address and then failing to connect.
For an initial comparison, query two explicitly selected public resolvers. The commands below are templates for your own hostname, not evidence of an incident affecting example.com. Keep the full output so that status, TTL and SERVER remain visible. The +short option is convenient once you know what you need, but hides useful context during an initial diagnosis.
dig @1.1.1.1 www.example.com A +noall +comments +answer +authority +stats
dig @8.8.8.8 www.example.com A +noall +comments +answer +authority +stats
dig @1.1.1.1 www.example.com AAAA +noall +comments +answer +authority +statsEstablish which servers are actually authoritative
A nameserver list in an old note or a cached response is insufficient. Check the current delegation from the parent namespace and compare it with the domain configuration. The dig +trace option follows referrals from the root. It needs network access to the relevant DNS servers, so a failed trace from a restricted network does not, alone, prove a delegation error.
dig +trace example.com NS
dig @AUTH_IP www.example.com A +norecurse +noall +comments +answer +authority +statsReplace AUTH_IP with the actual address of each delegated authoritative server and repeat the same query against all of them. The +norecurse option requests an answer without recursive resolution. Interpret aa alongside the destination and delegation. Do not classify a server using one flag alone: in our experiment, dnsmasq preserved aa in a freshly forwarded response from a caching endpoint too.
A real experiment with two independent caches
Inside a temporary isolated Linux guest, we ran dig 9.20.30 and dnsmasq 2.92rel2. One server was authoritative for shop.test, while two other processes provided independent forwarding caches. Everything stayed on the guest’s loopback network. The test domain and 192.0.2.x addresses are reserved for examples; no public DNS or customer installation was changed.
Initially, www.shop.test pointed to 192.0.2.10 with a 12-second TTL. We populated cache A only, then changed the authoritative record to 192.0.2.20. That short lifetime was chosen for observation in the lab, not as a recommendation for a production zone. The following values come from the saved dig output.
| Query | Answer address | TTL |
|---|---|---|
| Cache A, initial answer | 192.0.2.10 | 12 |
| Cache A, subsequent sample | 192.0.2.10 | 9 |
| Authoritative after the change | 192.0.2.20 | 12 |
| Cache A after the change | 192.0.2.10 | 7 |
| Cache B, first query | 192.0.2.20 | 12 |
| Cache A after expiry | 192.0.2.20 | 12 |
The difference had a specific cause: A still held an unexpired old record, while B had no previous answer. A’s returned TTL decreased. When it needed to refresh, it obtained the new address. This demonstrates caching, rather than establishing that every differing Internet address is an error or that all visitors update simultaneously.
When waiting is not a diagnosis
If delegated authoritative servers disagree, investigate the zone, synchronisation and delegation first. For NXDOMAIN, check the name and negative caches. SERVFAIL calls for investigation of resolution, availability or DNSSEC; it does not simply mean “the domain does not exist.” A NOERROR response without the requested record also differs from NXDOMAIN.
Different addresses can be expected with a CDN or geographic routing. A public resolver service may also answer through different cache infrastructure. The browser may use its own encrypted DNS and a different cache from your command. Correlate results with the failing network, rather than present two public queries as a universal test of every visitor.
Lowering a TTL now does not retroactively shorten an older cached answer. Serve-stale policies can also retain answers when refresh fails, so a simple countdown cannot guarantee a worldwide completion time. A useful diagnostic record includes name, record type, destination, time, status, answer and TTL, alongside the intended configuration.
Connect the evidence to the next action
Stigmahost Domains connects domain management with DNS and services. If the problem appeared during a hosting change, Website Migration requires coordinated record changes and verification before retiring the previous environment. Another blind nameserver change can add uncertainty instead of correcting the first problem.
