In this article
CoreDNS stale retention, returned TTL and refresh waiting are separate boundaries; verify the deployed mode before claiming an answer is fresh.
A worker continues receiving the old address after its DNS TTL expired, yet the resolver returns a successful answer. A serve-stale policy can deliberately retain expired data for resilience. Distinguish that behavior from a fresh authoritative answer, negative caching or an application connection pool that never performed another lookup after the address changed.
Locate the answering cache
Record the resolver endpoint, absolute question and actual response at the worker’s lookup boundary. A downstream cache or application address cache can obscure the CoreDNS answer. Confirm the relevant cache plugin configuration and deployed version. Serve-stale is a resolver policy with an implementation boundary, not a claim that authoritative DNS records have become permanently valid after expiry.
Separate retention from ordinary TTL
The serve-stale standard permits keeping data beyond its original expiry to improve resilience during refresh problems. CoreDNS documents serving stale entries with a zero TTL under its policy. That returned TTL is different from how long CoreDNS retains the expired entry. Do not infer that zero means the resolver has no stored data, or that retention guarantees every request receives the newest address.
Read refresh mode and bounds
Current CoreDNS documentation distinguishes immediate stale delivery from verifying upstream before fallback. It also documents a verify timeout that can bound waiting while refresh continues in the background. Check support in the installed release before using that syntax. Record retention, mode and verification boundary separately; selecting verification does not justify an unqualified freshness claim when a configured wait bound permits fallback.
Preserve evidence of staleness
Collect the returned answer, TTL, cache metrics and upstream refresh outcomes where available. Extended DNS Errors can carry stale-answer information when an implementation emits it, but its absence does not establish freshness. Do not assume every resolver or CoreDNS deployment provides that annotation. An old address observed only in a live connection is also insufficient evidence of a new stale DNS answer.
Test freshness and continuity together
In an isolated zone, change an address and compare healthy refresh, unavailable upstream and bounded slow refresh. Observe which answer reaches the worker and when later lookups become fresh. This makes the resilience-versus-freshness policy concrete. It does not establish that the old inference endpoint remains safe, reachable or compatible throughout the retained interval; those are separate service-lifecycle requirements.
Primary references
IETF DNS Serve-Stale Semantics.
CoreDNS Cache Plugin Refresh Modes.
IETF Extended DNS Error Information.
Related reading: Slow DNS in a Pod: search domains and ndots; GPU networking and availability: beyond internet speed.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.