﻿# Separate a cached DNS failure from a current record

Distinguish NXDOMAIN, type-specific NODATA and cached resolution failures, then inspect the responsible cache and negative-answer lifetime.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-net-dns-negative-cache/
Language: en

A newly created model endpoint resolves at its authoritative server while a worker still receives a negative answer. DNS caching can preserve earlier evidence of absence. Identify the negative response class, cache layer and remaining lifetime before concluding that the current record is missing or repeatedly restarting the inference worker to retry the same cached result.

## Preserve the exact question

Record the absolute queried name, class and record type, plus the resolver that answered. A successful address-family lookup does not necessarily contradict absence of another record type. Search-domain expansion can also produce a different question from the one intended. Compare identical questions before attributing disagreement to stale state rather than to differences in name or requested data.

## Separate name and type absence

NXDOMAIN denies the name, while NODATA describes absence of the requested data without the same name-nonexistence claim. Their cache keys differ: the latter retains record-type scope. NXDOMAIN also has documented implications for names beneath the denied name. Keep that distinction when investigating a child endpoint created after a parent was previously reported nonexistent to a recursive resolver.

## Read the negative lifetime

For cacheable authoritative negative answers, the SOA contributes the negative lifetime under the documented rules. Retain the SOA, remaining TTL and observation time. The current positive record's TTL does not retroactively shorten an already cached negative answer. A countdown observed at a recursive cache describes that cache's remaining state, not necessarily the authoritative zone's current publication time.

## Distinguish resolution failure

A timeout or SERVFAIL is not proof that the name does not exist. Current standards also require caching resolution failures, with implementation-specific scope for different failure classes. Inspect the response and resolver evidence before applying NXDOMAIN reasoning. Disabling negative caching indiscriminately can amplify repeated failed resolution without fixing an unreachable authority or validation problem.

## Verify recovery at the correct layer

Compare the intended recursive resolver with permitted authoritative diagnostics, preserving the distinction between those paths. After the relevant cached state expires or is deliberately cleared within authorized scope, repeat the same application lookup. A useful conclusion explains which cache retained which earlier outcome. It does not imply that DNS success proves connection establishment, TLS validation or model readiness at the newly named endpoint.

## Primary references

[IETF DNS Negative Caching](https://www.rfc-editor.org/rfc/rfc2308.html).

[IETF NXDOMAIN Subtree Semantics](https://www.rfc-editor.org/rfc/rfc8020.html).

[IETF Caching DNS Resolution Failures](https://www.rfc-editor.org/rfc/rfc9520.html).

Related reading: [Slow DNS in a Pod: search domains and ndots](/journal/kubernetes-dns-ndots-search-latency/); [Some DNS queries fail: why TCP and UDP port 53 both matter](/journal/kubernetes-dns-udp-tcp-policy/).
