DNS turns a name into records (mostly addresses) through a chain of caches in front of a tree of servers: your C library asks one recursive resolver, the resolver walks from the root down to the zone's own servers only for what it has not cached, and every answer, "no such name" included, is kept for a number of seconds the owner chose. Nearly every DNS problem you will debug is one of four things: the answer is cached somewhere you did not expect, one name was turned into many queries, one lost packet cost a fixed timeout, or the wrong server was asked.
Fig. 1 · One recursive question, a walk down the tree on a cache miss, and a cache at every hop
getaddrinfo(); the stub inside it (glibc or musl, which keep no cache) sends one question, A? api.llm.test with RD (recursion desired) set, to the resolver named in /etc/resolv.conf, and waits.test. servers, then llm.test.'s own server: two referrals and one answer with the AA (authoritative) flag, 4 upstream queries counting priming (section 2).ndots:5 made api.llm.test 8 (section 7); one lost packet costing the stub's whole timer, 5,037 ms on glibc (section 6); the wrong resolver asked, which answers differently (split horizon, section 8).Every number is from this page's lab tree (measured, 5 October 2026). On the internet the root and top-level answers are almost always cached, because they live for days (section 5). Drag to turn the scene.
You need UDP and ports, from Networking foundations. The overview of one LLM request through every layer is Topic: protocols; this page is the depth under its naming section. The running example: before the first byte of a streaming request to an LLM API leaves your process, the client must turn the API's name into an address. Here the API is api.llm.test on a private DNS tree built for this page (a root zone, test. and llm.test., each a real DNS server in a container, a real recursive resolver in front); the real api.anthropic.com appears where a public lookup tells the story better. Labels: measured here, illustrative, derived (with its formula).
getaddrinfo() in glibc or musl); asks, waits, retries, keeps no cacheNot here: UDP and packet sizes (Networking foundations); certificates and CAA enforcement (TLS and certificates); what happens after the address is known (HTTP); Kubernetes networking beyond DNS (Kubernetes for ML); the Host-header check for MCP servers (MCP). The root's Failure lab reproduces six DNS failures with their exact error texts (NXDOMAIN, SERVFAIL, Stale answer, Wrong resolver, Kubernetes ndots, A TLS error caused by DNS); this page names them.
| Program | Where it runs | What it does | Keeps a cache? | Typical failure |
|---|---|---|---|---|
| Stub resolver | inside your process: getaddrinfo() in the C library (glibc on Debian and Ubuntu, musl on Alpine), called by Python, curl, Node and every HTTP client | reads /etc/resolv.conf, expands short names with the search list, sends questions, waits, retries | no (glibc and musl keep none; some operating systems add one) | a lost packet costs a 5 s timeout; one name becomes eight queries |
| Recursive resolver | your router, the company resolver, the cloud's VPC resolver, a Kubernetes cluster's CoreDNS, or a public one (1.1.1.1, 8.8.8.8) | does the work: walks the tree from the root, follows referrals, validates signatures, answers | yes: every answer for its TTL, and "no such name" too | stale answers after a change; SERVFAIL when the authoritative servers or the signatures fail |
| Authoritative server | run by whoever owns the zone (Cloudflare, Route 53, your own BIND) | holds the zone's records; answers with a record or a referral one level down; never asks anyone else | no; it is the source | an empty or wrong record; an expired signature |
Everything marked measured was recorded for this page on 5 October 2026, either on a private DNS tree built in containers on an Apple M1 Pro laptop (Docker Desktop, Linux 5.10; Unbound 1.25.2, CoreDNS 1.12.4, glibc 2.41, musl 1.2.6, dig 9.20.29) or with about twenty-five read-only public lookups. The lab tree exists because the laptop this page was recorded on answers every ordinary public DNS packet with a local filter, so public walks cannot be observed from it (the root's Failure lab shows that filter as its "A TLS error caused by DNS" case). The public lookups were sent over encrypted DNS to a public resolver, with its certificate checked, which the filter does not touch. The lab's addresses (10.53.0.0/16) are a private container network with no route out; .test is reserved (RFC 6761 s6.2), so none of these names can leak into the real DNS.
The problem. Packets go to addresses, but configuration uses names, and the machines behind a name change all the time. One central table of every name could never keep up (until the 1980s every host downloaded one file, HOSTS.TXT; RFC 1034 s2.1). DNS splits the job by ownership: whoever owns a name runs, or rents, the servers that answer for it, and everyone else finds those servers by asking down a tree (RFC 1034 and RFC 1035, November 1987, still the core of the protocol).
Names are read right to left. api.anthropic.com. is three labels under the root, the empty label written as the final dot; a label is at most 63 bytes and a name at most 255 (RFC 1035 s2.3.4). A name ending in a dot is a fully qualified domain name (FQDN): absolute, never extended. Without the dot, your resolver library may first try to complete it with local suffixes, which is the whole story of section 7.
The servers that hold a zone's records are its authoritative servers. At the top are 13 root server identities, a to m.root-servers.net, run by 12 organisations; on 5 October 2026 they were served by 2,045 machines, each identity answering from many places on one address through anycast (one IP address announced from many sites; routing delivers to the nearest) (root-servers.org).
What delegation costs. A delegation is cached for as long as the parent says: 172,800 seconds (48 hours) for com. in the root zone file, and the same for the delegations inside .com, so moving a domain to new name servers can take two days to reach every cache. And every name under a zone depends on that zone's servers and the chain above them: when one record or one signature high up breaks, everything below it breaks at once (section 11).
Static diagram. Each shaded box is a zone, the part of the tree one set of servers answers for; each arrow is a delegation, NS records in the parent naming the child's servers, plus glue (their addresses) when those servers live inside the child, without which nobody could reach them. Left: the lab's zone files as served (measured). Right: the real tree; the com. line is copied from the root zone file InterNIC publishes (root.zone, serial 2026100500), which delegates 1,437 top-level domains (measured: distinct names with NS records in that file); the anthropic.com lines are the root page's recorded lookups.
. NS a.root-servers.test. (10.53.0.10) test. NS ns1.nic.test. (10.53.0.11) llm.test. NS ns1.llm.test. (10.53.0.12) api.llm.test. A 10.53.0.80 TTL 60
. NS a ... m.root-servers.net.
com. 172800 NS a ... m.gtld-servers.net.
anthropic.com. NS isla.ns.cloudflare.com.
randy.ns.cloudflare.com.
api.anthropic.com. A 160.79.104.10The number 13 is a fossil: in the early 1990s the list of root servers had to fit in one 512-byte UDP answer, and renaming them all under root-servers.net let compression squeeze 13 into it (RSSAC023 s2.6).
Two kinds of question. Your program asks its resolver a recursive question: "give me the final answer, do whatever it takes" (the RD, recursion desired, flag is set). The resolver then asks iterative questions down the tree: each authoritative server answers with the record or a referral ("I do not have that; these servers do"), and never asks anyone on your behalf (RFC 1034 s4.3.1 and s5.3.3). A resolver starts with nothing but the root servers' addresses (the root hints); its first act is to ask a root server for the current list (priming, the NS . query below).
The recording. A fresh Unbound with an empty cache was asked for api.llm.test once, then again; each authoritative server's own query log shows exactly what it was asked. Predict before it plays: in the cold run with QNAME minimisation, which name does the root server see? Then switch to minimisation off, and to the warm cache.
Fig. 2 · Cold, the resolver walks three levels; warm, nothing leaves it; with minimisation on, the root never sees the full name
A? api.llm.test with RD set to the resolver; its cache is empty.NS .; the root answers with its own server list (AA set, 84 bytes).test. Asked A test., the root refers the resolver to ns1.nic.test (10.53.0.11), with that address as glue: 80 bytes, no AA flag.test. sees only llm.test. Asked A llm.test., the test. server refers it to ns1.llm.test (10.53.0.12): 88 bytes.llm.test.'s own server answers A 10.53.0.80, TTL 60, with the AA flag: 92 bytes, NOERROR.NS . to a root server, answered with the root server list (AA, 84 bytes).A api.llm.test., the root still only refers (88 bytes), but it has learned exactly what you are looking up.test. Asked the full name too, it refers to ns1.llm.test (92 bytes).A 10.53.0.80, TTL 60, AA set, 92 bytes.Every message is from the servers' own logs (measured, CoreDNS log plugin and dig, 5 October 2026); each lab hop takes about a millisecond. On the internet the same walk costs real round trips: the root page measured 212 to 451 ms for an uncached public name and 2.4 ms once cached on the laptop.
What a cold lookup costs. One round trip from your process to the resolver, plus, on a cache miss, one round trip from the resolver to each level it does not already know. The root and top-level domains are almost always cached (their records live for days), so a cold lookup on the internet usually costs the round trip to the domain's own servers, often tens to hundreds of milliseconds. That is why the second lookup is cheap, and why a resolver that is restarted or flushed causes a burst of slow lookups and a burst of load on the authoritative servers.
QNAME minimisation: tell each server only what it needs. Classic resolvers sent the full name to every server, so the root learned every name anyone looked up. With QNAME minimisation (RFC 9156) the root is asked only about test., the test. servers only about llm.test.; in the recording the root's log holds A test. with it on and A api.llm.test. with it off. Unbound has done this by default since 1.7.2 (June 2018; Unbound manual); BIND does a "relaxed" version by default that falls back to the full name when a server answers oddly (BIND 9.20 reference). It costs nothing in the common case and can cost extra queries for names many labels deep. Unbound also sets the CD (checking disabled) flag on its upstream questions: it validates signatures itself (section 9) and wants the raw data.
dig +trace cannot show this walk on every networkdig +trace name normally does the walk itself, from the root down, and is the best way to separate "the zone is broken" from "my resolver cached something wrong". It only works if your packets reach the root servers. On the laptop this page was recorded on, a filter answers every plain DNS packet itself, even one addressed to a root server and even from inside a container: asked example.com without recursion, a.root-servers.net's address replied with a final answer and the RA flag set, which a real root server never does (it would refer you to the .com servers). Corporate device management, VPNs and security software often do this. That is why the walk on this page is recorded on a private tree, and why the public lookups were sent over DNS over TLS (section 10).
One format for everything. A question and its answer use the same layout (RFC 1035 s4.1): a 12-byte header, then four sections. The question holds the name, the record type and the class (always IN, Internet); the answer the records asked for; the authority section NS records for a referral, or the zone's SOA record with a "no"; the additional section glue addresses and the EDNS pseudo-record. Each record carries its owner name, type, class, a 32-bit TTL in seconds, and its data.
The header. A 16-bit ID the answer must echo (with the source port, all that ties an answer to its question over UDP: section 10), seven flags (QR response, AA authoritative, TC truncated, RD and RA recursion desired and available, AD validated by DNSSEC, CD checking disabled), four counts, and the 4-bit response code you will debug by: NOERROR; NXDOMAIN (the name does not exist at all); SERVFAIL (the resolver tried and failed, which says nothing about whether the name exists); REFUSED (this server will not answer you). NODATA has no code of its own: NOERROR with an empty answer, the name exists without that type (asking api.llm.test for TXT in the lab returns exactly that, with the SOA in the authority section).
The two UDP payloads exactly as sent and received (measured), parsed in the browser. In the CNAME answer, www.llm.test is written once and later replaced by the two bytes c0 0c, a compression pointer ("see byte 12", where the question's name starts).
DNS runs on UDP port 53 because one question and one answer usually fit in a datagram each, with no connection to set up. The original limit is 512 bytes per UDP message (RFC 1035 s2.3.4). EDNS(0) (RFC 6891) lets a client add an OPT pseudo-record that says how large an answer it can take, plus a DNSSEC OK bit and options (cookies, client subnet, padding). The operators' Flag Day 2020 settled the default advertised size at 1,232 bytes, small enough that an answer never needs IP fragmentation on a normal path (dnsflagday.net/2020); fragments are lost more often and can be forged more easily (section 10), so bigger is not better. When an answer does not fit, the server sends what fits with TC set and the client must ask again over TCP, which every implementation, stubs included, must support (RFC 7766 s5). The lab's pool.llm.test has 40 addresses:
measured. Without EDNS (+noedns, which is how glibc and musl ask unless told otherwise: their queries in section 7's capture are 30 bytes, header plus question) the 671-byte answer does not fit in 512, so the first reply is an empty truncated message and dig repeats the question over TCP. With EDNS at 1,232 it arrives in one UDP datagram (682 bytes).
Section 7's resolver lab has pool.llm.test looked up by glibc and musl (preset "A 40-address answer"): both got a truncated UDP answer, opened TCP and received all 40 addresses; glibc did the whole UDP-then-TCP exchange twice within one call.
dig +tcp name and dig +bufsize=512 name.A name is written as length-prefixed labels (03 api 03 llm 04 test 00), and any later occurrence can be replaced by a two-byte pointer: two high bits set, then a 14-bit offset back into the message, which is why a pointer can only reach the first 16,383 bytes (RFC 1035 s4.1.4).
A resource record is one line of a zone: owner name, TTL, class, type, data. All records with the same name and type form an RRset, which is cached, signed and expires as one unit. The examples are the lab resolver's real answers (measured) and, where marked, public ones.
| Type | What it holds | Recorded answer | What to know |
|---|
Rows: A and AAAA, CNAME, NS, SOA, MX (with the null MX of RFC 7505), TXT (a 2048-bit DKIM key split into two strings), SRV, CAA (RFC 8659), HTTPS and SVCB (RFC 9460), PTR, and the DNSSEC types DS, DNSKEY, RRSIG and NSEC.
example.comA CNAME says "this name is an alias; ask about that other name instead", and a name with a CNAME may have no other data (RFC 1034 s3.6.2, RFC 2181 s10.1). The zone apex (the bare domain, llm.test. itself) must hold SOA and NS records, so it can never be a CNAME. That bites when a cloud load balancer or CDN gives you a hostname rather than fixed addresses. Three ways out:
example.com. HTTPS 0 lb.provider.net. is legal at the apex. Its ServiceMode form (priority 1 or more) also tells a browser, before it connects, which HTTP versions the server speaks (alpn), its addresses, and the key for Encrypted Client Hello (ech). On 5 October 2026 cloudflare.com advertised alpn="h3,h2" and api.anthropic.com advertised alpn="h2" with IPv4 and IPv6 hints (measured), which is how a browser can start with HTTP/3 without a first HTTP/2 visit (see HTTP).MX 0 . (RFC 7505).The rule. Every record carries a TTL (time to live), chosen by the zone owner: the number of seconds a cache may keep it. A resolver that fetches a record with TTL 300 serves it for up to 300 seconds, counting down, then asks again. Nothing can push a change into caches or invalidate them from outside. So "DNS propagation" is a myth: the authoritative server has the new data the moment you save it, and you are waiting for every cache that holds the old answer to expire.
Fig. 3 · A cache keeps what it has until the TTL runs out
weights.llm.test; the resolver fetches A 10.53.0.81 from the authoritative server (4 ms) and caches it for its TTL, 30 s.10.53.0.82 from 9.5 s (it reloads its zone file every second). The resolver's copy has 23 s left.10.53.0.81 with the TTL counting down, 21, 18, 16 ... 2, whatever the authoritative server now says: nothing pushes the change into the cache.10.53.0.82, TTL 30.10.53.0.83 from 7.1 s.10.53.0.83, now cached for that record's own TTL, 300 s.serve-expired: yes, fetch A 10.53.0.81, TTL 30.llm.test. is stopped.10.53.0.81 with TTL 30, after 1,809 ms (and 1,806 ms again at 59.9 s).measured: the lab resolver (Unbound 1.25.2) and the authoritative server for llm.test. were both asked every two seconds; each slab is the cached copy, its length the TTL the resolver reported. Beside "Negative caching" below, the same two recordings are drawn as timelines.
With a TTL of a day the same picture lasts a day. A TTL is also a per-cache countdown, not a global clock: api.anthropic.com came back with 292 seconds left and, five seconds later from the same public resolver address, 212 seconds left, 80 lower instead of 5 (measured over DoT), because one address hides many caches filled at different times.
Lower the TTL (to 60 to 300 s) at least one old TTL before the change, because caches that fetched just before you lowered it keep the old TTL. Make the change. Keep the old address serving until the old TTL has passed since the change, then raise the TTL again. Clients add their own layer: a JVM caches for 30 s by default, and a long-lived connection never re-resolves at all (section 6). Predict: with a one-hour TTL lowered to 60 s only 30 minutes ahead, how long until every cache has the new address? Then set the lead slider to 30 min.
illustrative model: you are moving api.example.com; the squares are 100 resolver caches flipping from old (blue) to new (green); the orange step is the recorded run above. The rule it encodes is exact: a cache flips when the entry it held at the moment of the change expires, and an entry keeps the TTL it was fetched with. For a move between DNS providers (changing NS records) count the parent's TTL, 48 hours for .com.
Every cache is assumed to be kept warm by steady traffic, with fetch times spread evenly over one TTL; a real cache that sees little traffic refetches later and flips sooner. Clients with their own cache add up to 30 s spread evenly; pinned clients never flip. Checked against an independent Python version by check_embed.py.
A resolver also caches NXDOMAIN and NODATA, so that a typo hammered in a loop does not reach the authoritative servers every time. For how long is set by the zone's SOA record, which the "no" carries in its authority section: the minimum of the SOA record's own TTL and its last field, MINIMUM (RFC 2308 s5; MINIMUM once meant something else and was repurposed for this). In the lab, llm.test's SOA has TTL 300 and MINIMUM 30, so a "no" lives min(300, 30) = 30 seconds:
For anthropic.com both numbers are 1,800 (SOA ... 604800 1800, measured), so a name looked up a moment before it is created stays missing for up to half an hour for everyone behind that cache; a zone with MINIMUM 86400 would make it a day. Keep MINIMUM between about 300 and 900 seconds on zones that change, and do not let deploy scripts or health checks look up names before they exist (the root's Failure lab "NXDOMAIN" case shows what each client library prints). Failures are cached as well: a resolver that gets no usable answer must remember that for at least 1 second and at most 5 minutes, and back off rather than retry hard (RFC 9520 s3, December 2023), which is why a broken zone can stay broken for a few minutes after it is fixed.
Recorded: the lab resolver fetched weights.llm.test (TTL 30); a few seconds later the address was changed at the authoritative server; both were then asked every two seconds. The resolver's TTL fell 30, 28, 25 ... 2, and only then did it fetch the new address.
When an authoritative server is unreachable and a cached record has expired, a resolver normally has nothing to give: SERVFAIL, or, as recorded below, no answer at all before the client gives up. Serve-stale (RFC 8767) lets it return the expired record instead, marked with a short TTL (30 s recommended), after trying the servers for a moment (1.8 s recommended). Recorded: two Unbound resolvers, one with serve-expired: yes, both cached weights.llm.test; then the zone's server was stopped and the TTL allowed to run out:
It trades correctness for availability: a client may get an address that has changed. That is usually the right trade for internal names during an outage of the DNS provider, and it softened the .de outage (section 9). Unbound and BIND leave it off by default; public resolvers and Kubernetes CoreDNS set their own policies.
Who actually asks. When Python's requests or httpx, curl, Node's default dns.lookup or a gRPC channel opens a connection to a name, it calls getaddrinfo(), and the C library's stub resolver does the DNS work: it reads /etc/resolv.conf, sends the questions, waits, retries, and returns addresses or an error. On Debian, Ubuntu and the CUDA images that is glibc; on Alpine it is musl, and they behave differently in ways that matter, which is why a glibc-based image is the safer default for ML containers.
The knobs live in /etc/resolv.conf: nameserver (up to three), search, and options ndots:n (default 1), timeout:n (default 5 s) and attempts:n (default 2) (resolv.conf(5)).
glibc also reads single-request, single-request-reopen, use-vc (always TCP), edns0, trust-ad and no-aaaa. musl documents its differences from glibc in one place (musl wiki). Go is the exception to "the C library asks": on Linux it normally uses its own resolver, which reads the same file (Go net package).
Both libraries send the A and AAAA questions at the same moment from one socket. A pod asked for api.llm.test. through a relay that dropped the first AAAA question and passed everything else; tcpdump inside the pod recorded every packet. Predict: what does one lost packet cost glibc with default settings?
timeout:1measured in the lab, each run once; the bars are the duration of the getaddrinfo call, drawn to one scale, the first answer arriving within milliseconds and the rest of each bar the library sitting on its timer. glibc waits its full timeout before resending; musl resends every timeout / attempts (2.5 s by default) to all servers at once; single-request-reopen did not help because this loss was not caused by the shared socket (it helps against the conntrack races of section 7). timeout:1 is a cheap mitigation where loss is real; too short and a slow resolver looks dead. Section 7's resolver lab replays each run packet by packet.
| Case | glibc | musl |
|---|
glibc asks the listed servers in order, moving on only after a timeout, so a dead first server costs every lookup 5 seconds; musl asks all of them in parallel and takes the first answer, so the same dead server cost it almost nothing. So put your most reliable server first for glibc, and do not list servers that disagree (an internal and a public one) for musl, which will take whichever answers first. A SERVFAIL is final for glibc, which reports it at once; musl keeps asking until its timeout runs out.
The error text tells you which failure you have. In Python both libraries raise socket.gaierror; the codes are the C library's EAI_* values:
| DNS outcome | glibc (Debian) | musl (Alpine) |
|---|
"Name or service not known" (EAI_NONAME, -2) means a real "no": check the spelling and which resolver you asked (the Failure lab's "NXDOMAIN" and "Wrong resolver" cases). "Temporary failure in name resolution" (EAI_AGAIN, -3) means no usable answer arrived: a SERVFAIL, a timeout, or no reachable server; it is worth one retry with backoff, and if it took 5 or 10 seconds, packets were lost. curl reports both as curl: (6) Could not resolve host, so ask Python or getent ahosts name for the distinction.
No cache at all: Python, Node, glibc and musl. socket.getaddrinfo wraps the C function and adds nothing (Python docs); neither requests nor urllib3 caches names. Node's dns.lookup is a blocking getaddrinfo on libuv's thread pool of 4 threads by default, so slow DNS can stall unrelated file and crypto work (Node docs). What saves you is connection reuse: a pooled connection resolves once. Recorded in the lab pod (with Kubernetes settings, section 7):
| 10 requests to api.llm.test | DNS queries the pod sent |
|---|
measured: 8 queries per lookup because of the pod's search list (section 7). The middle row is the surprise: a "pooled" client gains nothing when the server closes the connection after each response, because every request then opens a new connection and resolves again.
systemd-resolved or nscd on a VM).networkaddress.cache.ttl, networkaddress.cache.negative.ttl); up to JDK 23, installing a security manager made the positive cache last forever (JDK java.security). Long-lived JVM services that set it to forever keep calling a load balancer's old address after it moves.max_connection_age on the server) when backends move.What a pod gets. With the default dnsPolicy: ClusterFirst, kubelet writes every pod a resolv.conf that points at the cluster DNS service (CoreDNS) and adds a search list and ndots:5 (Kubernetes docs):
search default.svc.cluster.local svc.cluster.local cluster.local nameserver 10.96.0.10 options ndots:5
This is what lets code in namespace default say http://llm-proxy and reach llm-proxy.default.svc.cluster.local. CoreDNS answers cluster.local names from the Kubernetes API and forwards everything else upstream. The policy named Default is not the default: it copies the node's resolver settings instead.
The rule that costs. A name with fewer dots than ndots is tried with every search suffix before it is tried as written. api.llm.test has two dots, fewer than five, so the stub first asks for api.llm.test.default.svc.cluster.local, then api.llm.test.svc.cluster.local, then api.llm.test.cluster.local, each for A and AAAA, and only then for api.llm.test. External API names (api.anthropic.com, s3.us-east-1.amazonaws.com: two and three dots) all pay this. The resolver lab beside this opens on the whole recorded exchange; step back through it packet by packet, or pick another pair of runs.
The resolver lab: each pane replays one recorded getaddrinfo call, with the exact /etc/resolv.conf the pod had and every DNS packet it sent and received, captured with tcpdump inside the pod's own network namespace (measured, 5 October 2026; glibc 2.41 on Debian 13, musl 1.2.6 on Alpine; a real CoreDNS 1.12.4 as the cluster DNS, Unbound 1.25.2 behind it). Pick a preset or any two runs; the bars draw both durations to one scale. Rows marked "wait" are gaps of more than half a second with no packet: the library on its timer. The lossy runs used a relay that dropped the first AAAA query (or every query, for "dead"); its log is under each pane.
| One lookup of | resolv.conf | glibc: queries (failed) | musl: queries (failed) | Result |
|---|
measured: packets the pod sent. "4 search domains" adds a node-inherited suffix (us-east-1.compute.internal, as on an EC2 node) the way kubelet appends the node's own search list: 10 queries, 8 failing.
The fixes, in order of preference.
api.anthropic.com.): absolute, one A and one AAAA, nothing else. Most HTTP clients accept it; a few TLS stacks dislike the dot in the server name, so test it.ndots for the pod with dnsConfig: {options: [{name: ndots, value: "1"}]} (or 2), so external names are tried as written first. The catch, recorded above: in-cluster names with a dot, such as kubernetes.default, are then tried as absolute names first and fail; glibc falls back to the search list, but musl does not retry a name with at least ndots dots against the search list (musl wiki), so on Alpine kubernetes.default stopped resolving at all. Use full names (llm-proxy.default.svc.cluster.local.) in configuration if you lower ndots.169.254.20.10) that skips the iptables DNAT and connection tracking below, and able to use TCP towards CoreDNS (Kubernetes docs, add-on README). It cuts the load but not the number of queries.autopath does the search-list walk on the server: the first query returns the final answer, one question instead of eight (CoreDNS autopath). It needs CoreDNS to know every pod, which costs memory on big clusters.corrected The old page said lowering ndots breaks bare short names like myservice; recorded, a name with no dot (myjob-headless) still resolved on both libraries, because zero dots is below any ndots. The names that break are the ones with a dot, and only on musl.
Pods reach the CoreDNS service address through kube-proxy's iptables rules, which rewrite the destination (DNAT) and record each flow in the kernel's connection tracking table (conntrack). glibc and musl send A and AAAA together from one socket, and UDP has no handshake, so the two packets can race through conntrack on different CPUs; Martynas Pumputis found three such races in 2018, in each of which one packet is dropped and the pod waits out its 5-second timeout (Weave blog, archived). The last fix landed in Linux 5.6, so on older nodes it still bites. The symptom is the fingerprint: lookups that take 5.0x seconds (or 2.5 on Alpine), the stub's timeout, never "slow" in general, exactly the number of the lost-packet runs in section 6. Workarounds on old kernels: options single-request-reopen (glibc only), timeout:1, or NodeLocal DNSCache.
Clashing identical entries are resolved (Linux 4.19, ed07d9a), same-origin NAT clashes skipped (5.0, 4e35c1c), and clashing UDP entries allowed to coexist briefly, which covers the third race where the two packets were sent to different CoreDNS pods (5.6, 6a757c0). corrected The old page said the first two were fixed in 4.17 and the third "never".
/etc/resolv.conf and that points at a local stub such as systemd-resolved's 127.0.0.53, queries go round in a loop; the loop plugin detects its own probe coming back and stops the process, which shows as CoreDNS pods in CrashLoopBackOff (CoreDNS loop). The fix is to point kubelet at the real upstream file (--resolv-conf=/run/systemd/resolve/resolv.conf; kubeadm does it) (Kubernetes DNS debugging).coredns_dns_responses_total{rcode="NXDOMAIN"} against the total is the signature of search-list amplification: in the recordings above, three out of four answers to external lookups are NXDOMAIN.A ClusterIP service gives one virtual address that forwards each connection to one random pod, which is useless when every rank of a training job must reach every other rank. A headless service (clusterIP: None) instead returns one A record per ready pod, and pods of a StatefulSet get stable names, myjob-0.myjob-headless.default.svc.cluster.local and so on (StatefulSet docs); the lab's myjob-headless answered with all four pod addresses. The trap: pods get records only once they are ready, and a training pod often cannot become ready until rendezvous succeeds, which needs the records. publishNotReadyAddresses: true on the service publishes them early; the API reference names StatefulSet peer discovery as its main use (Service API). A torchrun job that hangs at start-up waiting for its master address is worth checking for this; training jobs also suffer most from the 5-second stall, since every rank resolves at once. Rendezvous and start-up hangs are on Launching distributed training, the rest of Kubernetes networking on Kubernetes for ML.
For serving, DNS round-robin across model replicas is a poor load balancer (clients cache one address; DNS knows nothing about queue depth); the Service APIs page (its section 8) balances gRPC in the client over every Pod address a headless Service returns (dns:///name).
The VPC resolver. Every AWS VPC has a built-in recursive resolver (Route 53 Resolver; newer pages call it the VPC Resolver) at the VPC's base address plus two (10.0.0.2 for 10.0.0.0/16) and at 169.254.169.253 (AWS VPC DNS). It answers private hosted zones, public names and the VPC's own instance names; the VPC needs enableDnsSupport (and enableDnsHostnames for instance names).
A hard packet limit. Each instance may send at most 1,024 packets per second to link-local services in total, DNS, the metadata service and time sync together, and the limit cannot be raised (same page). Excess packets are dropped, so the symptom is the stub's timeout, not an error. A dense Kubernetes node whose pods all talk to the VPC resolver, each external lookup multiplied by eight (section 7), reaches it; NodeLocal DNSCache and fewer search-list misses are the remedies. corrected The old page said "per ENI"; the documentation states the quota for link-local traffic in aggregate.
Split horizon: one name, two answers. A private hosted zone answers only inside the VPCs associated with it, so the same name means different things inside and outside, and which answer you get depends only on which resolver you asked:
illustrative names and documentation addresses (192.0.2.0/24, 203.0.113.0/24). This is the root's Failure lab "Wrong resolver" case: works on the laptop on the VPN, NXDOMAIN in CI. Check with dig @internal name against dig @public name.
Resolver endpoints forward queries between a VPC and on-premises DNS in both directions and are billed per endpoint and per query, a common surprise on the bill. Query logs are off until you turn them on: Resolver query logging needs a logging configuration associated with the VPC, and cached answers are not logged (AWS); it is the native way to spot exfiltration (section 10) and runaway lookups.
Route 53 as an authoritative service. Routing policies (weighted, latency-based, failover, geolocation, multivalue) choose which answer a client gets, and all of them act only when a resolver asks again, so a failover is as fast as the health check's detection time plus the record's TTL, never faster: with Route 53's default 30-second checks, 3 failures and a 60-second TTL, clients can keep the dead address for about 90 + 60 = 150 seconds (derived; HealthCheckConfig).
Health checks probe every 30 seconds by default, or every 10 with fast checks, and mark an endpoint unhealthy after 3 failures by default. Health checkers live on the internet, so they cannot probe private addresses; for a private resource, health-check a CloudWatch alarm instead (AWS). Multivalue answers return up to eight healthy records per answer (AWS).
The problem. Classic DNS has no authentication: a resolver accepts the first answer that matches its question's ID and port, so anyone who can answer first, or who controls a hop, can send you to the wrong address (section 10). DNSSEC (RFC 4033 to 4035) lets a resolver prove that an answer is exactly what the zone's owner published, and that a "no such name" is genuine.
How it works. Each zone signs every RRset; the signature is an RRSIG record with an inception and an expiry date. The zone publishes its public keys as DNSKEY records, usually in two roles: a key-signing key (KSK) that signs only the key set, and a zone-signing key (ZSK) that signs everything else. The parent vouches for the child's KSK by publishing a hash of it, a DS record, which the parent signs in turn. Following DS to DNSKEY to DS up the tree ends at the root's KSK, which the resolver must already trust: that copy is the trust anchor. A name that does not exist is proven by an NSEC (or hashed NSEC3) record, a signed statement "nothing exists between these two names". Each key is named by a 16-bit key tag, a checksum of the key.
The chain, recorded. The lab's three zones were signed (ECDSA P-256, algorithm 13) and the lab resolver given the lab root's KSK as its anchor. Follow the chain for api.llm.test, then switch to the two ways it breaks:
Fig. 4 · Trust flows down from one configured key; break any link and everything below it is SERVFAIL
test. DS, in the root zone. The root vouches for test.: a DS with tag 25517, signed by the root's ZSK.test. DNSKEY set. test.'s KSK (tag 25517) matches that DS and signs its key set, which holds its ZSK (59849).llm.test. DS, in test. test. vouches for llm.test.: DS tag 48849.llm.test. DNSKEY set. KSK tag 48849 matches; the ZSK (tag 51623) signs the zone's records.api.llm.test A and its RRSIG. The address is signed by the ZSK. The chain is complete: the resolver sets AD (authentic data). delv doing the same walk itself prints each verified key id (in the records block below).test. DS. Verified.test. DNSKEY set. Verified.llm.test. DS. Verified.llm.test. DNSKEY set. Verified: every link up to the zone's keys holds.test. DS. Verified.test. DNSKEY set. Verified.llm.test. DS. Verified.llm.test. DNSKEY set. Verified.nope.llm.test: a signed "no". The name does not exist, and the resolver can prove it: the zone returns NSEC records, signed, saying "after api.llm.test the next name is ns1.llm.test", so nothing called nope.llm.test can exist (it would sort between them). AD is set on the NXDOMAIN.measured: records and resolver answers from the lab (Unbound 1.25.2 validating, CoreDNS serving pre-signed zones), 5 October 2026. Keys were generated for this run; their tags change on each rerun.
What it does not do. DNSSEC proves origin and integrity, not secrecy: the question and answer still cross the network in the clear. It protects the resolver, not the hop from your laptop to the resolver, unless your own stub validates or trusts the AD flag over a secure channel (glibc only honours AD with options trust-ad, since glibc 2.31; resolv.conf(5)). It says nothing about the server you then connect to (that is TLS's job). And signed answers are larger, which makes DNS a better amplifier for denial-of-service floods.
A validating resolver that finds a broken signature must return SERVFAIL, not the unvalidated answer, so a signing mistake looks exactly like an outage. The test is the CD flag: dig +cd name asks the resolver to skip validation; if that returns an answer while the normal query fails, the problem is DNSSEC. A public example, deliberately broken by its owner: dnssec-failed.org returned SERVFAIL through 1.1.1.1, with the Extended DNS Error "9 (DNSKEY Missing): no SEP matching the DS found", and an address with +cd (measured; Extended DNS Errors are RFC 8914).
The .de outage, 5 May 2026. During a routine key roll, DENIC's signer produced signatures that about two thirds of the time could not be validated, and validating resolvers returned SERVFAIL for much of .de for about three hours (DENIC analysis). Operators mitigated with negative trust anchors (RFC 7646), an instruction to treat one zone as unsigned for a while, and serve-stale (section 5) softened the impact.
DENIC's new signer generated three different key pairs (one per hardware security module) under the same key tag, 33834, but published only one public key. The SERVFAILs started at roughly 19:30 UTC. Cloudflare's negative trust anchor took effect at 22:17 UTC, and serving stale cached answers softened the impact as records expired (Cloudflare).
KSK-2024 (key tag 38696), published in the root zone on 11 January 2025, was scheduled to become the only key signing the root's key set on 11 October 2026, with the old KSK-2017 (20326) to be revoked in the first quarter of 2027 (IANA, ICANN); on 5 October 2026 the root served both KSKs and the key set was still signed by KSK-2017 (measured over DNS over TLS). Resolvers that follow automated trust-anchor updates (RFC 5011) have trusted KSK-2024 since February 2025. The risk is a trust anchor frozen in a file (a container image, appliance or VM running its own validating resolver with an anchor baked in before 2025): the chain's third mode above shows it returning SERVFAIL for every name, signed or not. Check the anchor file (trust-anchor-file or auto-trust-anchor-file in Unbound, trust-anchors in BIND) for key tag 38696 or its DS digest 683D2D0A....
KSK-2024 was generated in April 2024; on 5 October 2026 the root served both KSKs and two ZSKs. The key tags and DS digests recomputed for this page from the root zone file match IANA's published trust anchors exactly; below them, the root key set as served over DNS over TLS on 5 October 2026 (with the AD flag), its RRSIG carrying key tag 20326:
Adoption. On 3 October 2026, 39.65% of users worldwide sat behind resolvers that fully validate, and another 9.41% behind a mix of validating and non-validating ones (APNIC Labs). Signing is far rarer: 8,362,748 .com domains had a DS record (Verisign scoreboard, 3 October 2026) out of 167,164,684 names in the zone, about 5.0% (8,362,748 / 167,164,684; Verisign zone counts). corrected The old page said "about 36 percent of users and about 7 percent of zones" with no date or scope.
Plain DNS is readable and rewritable by every network it crosses: your Wi-Fi, your ISP, a filter on your laptop. Three standards encrypt the hop from your machine to the resolver: DNS over TLS (DoT), TCP port 853 (RFC 7858, 2016); DNS over HTTPS (DoH), ordinary HTTPS requests on port 443 (RFC 8484, 2018); and DNS over QUIC (DoQ), UDP port 853 (RFC 9250, 2022). DoT is easy for a network to recognise and block by port, which enterprises like and censors exploit; DoH looks like any other web traffic, which is why enterprises dislike it; DoQ avoids TCP's head-of-line blocking and sets up faster. In one academic measurement DoQ loaded simple pages up to 10% faster than DoH and was only about 2% slower than plain DNS on complex pages (Kosek et al., IMC 2022). corrected The old page's "88 ms against 883 ms, 2026 measurements" could not be found in any source and is not repeated. Encryption protects only that one hop: the resolver still sees every name, and its own upstream queries are plain unless the zone is signed (section 9).
Every public lookup on this page went over DoT to 1.1.1.1 with the certificate checked against one.one.one.one, and a test query for the resolver's identity returned a Cloudflare data-centre code, so the answers really came from the public resolver. The same identity query over plain UDP was answered by the laptop's filter instead. Each encrypted answer arrived padded to 468 bytes: the resolver pads responses to a multiple of 468 so the size does not reveal the name (RFC 8467; measured: all ten replies whose size was recorded were exactly 468 bytes, whatever the name). Encryption made the interception visible rather than silent, which is also how the root's Failure lab caught it.
Over UDP a resolver accepts the first reply whose 16-bit ID and port match its question. In 2008 Dan Kaminsky showed that an attacker who triggers many lookups of random names in one zone can race the real server with forged replies carrying a forged delegation, and with a fixed source port only the ID (on average 32,768 guesses) stood in the way (CERT VU#800113). The fix was source-port randomisation, adding up to another 16 bits (RFC 5452). DNSSEC is the only complete fix.
Later layers are DNS cookies (RFC 7873) and randomising the letter case of the question ("0x20", an expired draft). In 2020 SAD DNS recovered the random port through a side channel in the kernel's global ICMP rate limit, fixed in Linux by randomising that limit (saddns.net, CVE-2020-25705 fix). Fragmented answers are another way around the port check, one more reason for the 1,232-byte limit.
measured: the attacker's DNS server log and the tool's own output; the "credential" is a fake string served by a container. The real metadata service also needs the fix below.
Browsers decide what a page may read by its origin: scheme, host name and port (HTML standard), not the IP address behind the name. An attacker's name first resolves to the attacker's server, which serves JavaScript; with a TTL of 0 the next lookup of the same name returns 127.0.0.1, a LAN address or the cloud metadata address 169.254.169.254, and the script, still "same origin", reads whatever is there. Every notebook, Ray dashboard, MLflow, TensorBoard or model server bound to 0.0.0.0 without authentication is reachable this way from a browser on the same network. Chrome now asks the user before a public site may reach local addresses (Local Network Access, from Chrome 142, late October 2025; Chrome blog); servers should still check the Host header, as the MCP page shows for MCP servers.
The same trick against an agent's fetch tool. A tool that fetches URLs for a model usually checks the URL first ("refuse internal addresses") and then fetches it. If the check resolves the name and the HTTP library resolves it again, the two lookups can get different answers. The lab reproduces it: rebind.attacker.test answers alternately with the attacker's server and with 10.53.0.99, a stand-in for the metadata address, always with TTL 0; a 30-line fetch tool is run twice, written two ways:
getaddrinfo): A? rebind.attacker.test.A rebind.attacker.test. -> 10.53.0.66 ttl 0).A rebind.attacker.test. -> 10.53.0.99 ttl 0). Nobody checks it.GET / with Host: rebind.attacker.test goes to the metadata stand-in.{"AccessKeyId":"LAB-FAKE-KEY","Note":"stand-in for instance credentials"}.A? rebind.attacker.test.Host header. No second lookup happens: the attacker's log shows 1 A query.Resolve once, validate the address (not the name), connect to that literal address and send the name in the Host header (and as TLS SNI); refuse redirects or re-validate them the same way. On AWS, require IMDSv2, whose session token must be fetched with a PUT, so a plain GET from a rebinding page or a naive proxy fails; a response hop limit of 1 also keeps the token from reaching containers behind a bridge (AWS notes that containers then need a limit of 2 if they genuinely need the service; AWS IMDS docs). The MCP specification lists this among the checks a client must make before fetching a URL a server gave it (MCP security best practices).
Any machine that can resolve names can send data out: encode it in the labels of a name under a domain the attacker controls (c2VjcmV0.x.attacker.example), and your own resolver carries it to the attacker's authoritative server, past egress firewalls that only watch HTTP. It is slow but enough for keys; the SolarWinds SUNBURST backdoor used it for its first stage. Detection watches, per parent domain, the number of unique subdomains, the randomness of labels and the share of NXDOMAIN answers; on AWS that needs Resolver query logging, which is off until you configure it (section 8).
Disclosed December 2020, it encoded the victim's domain name into subdomains of avsvmcloud[.]com and read its instructions from the answers, then moved to HTTPS for the rest (Mandiant).
Three primary post-mortems, each with one lesson. AWS us-east-1, 19 to 20 October 2025: DynamoDB's own DNS automation raced with itself and left dynamodb.us-east-1.amazonaws.com with an empty record; "no addresses" is a valid and catastrophic answer, and recovery is floored by TTLs. Cloudflare 1.1.1.1, 14 July 2025: a configuration error dormant for five weeks withdrew the resolver's addresses from the internet for 62 minutes; a resolver is a single point of failure, so configure two from different operators. .de, 5 May 2026: a signing bug made validators reject the zone for about three hours (section 9); DNSSEC turns a signing bug into a hierarchy-wide outage.
| When | What happened | Lesson |
|---|---|---|
| AWS us-east-1, 19 to 20 Oct 2025 | DynamoDB's DNS automation has a Planner that writes plans (which load balancers, which weights) and three Enactors, one per availability zone, that apply them to Route 53. One Enactor stalled while applying an old plan; a faster one applied the newest plan and then cleaned up old plans. The slow one woke, its "my plan is newer" check long stale, and overwrote the record with its old plan just as the clean-up deleted that plan, leaving the name with an empty record and the automation unable to repair it. DNS impact from 11:48 PM PDT; all DNS information restored by 2:25 AM, clients recovering as cached records expired by 2:40 AM; other services, EC2 and load balancer health checks among them, took until 2:20 PM (AWS summary). | A control plane can race with itself; "no addresses" is a valid and catastrophic answer; recovery is floored by TTLs. |
| Cloudflare 1.1.1.1, 14 Jul 2025 | A configuration error made on 6 June tied the 1.1.1.1 prefixes to a service that was not yet in production. It did nothing for five weeks; on 14 July an unrelated change to that service triggered a global refresh that withdrew the resolver's addresses from the internet, from 21:52 to 22:54 UTC (62 minutes). A BGP hijack of 1.1.1.0/24 by another network became visible during the gap and was widely misreported as the cause (Cloudflare). | A resolver is a single point of failure: configure two from different operators. Dormant configuration errors are the dangerous kind. |
| .de DNSSEC, 5 May 2026 | Signatures under the .de zone that validators could not check, for about three hours (section 9) (DENIC). | DNSSEC turns a signing bug into a hierarchy-wide outage; negative trust anchors and serve-stale are the operator's tools. |
corrected The old page gave the AWS DynamoDB impact as 14 h 32 min; that is closer to the whole event's span. The DNS problem itself ran 11:48 PM to about 2:25 AM PDT (2 h 37 min), with clients recovered by 2:40 AM as caches expired (2 h 52 min).
Rule one: ask the way your program asks. dig talks DNS directly to one server and ignores the search list, /etc/hosts and every cache in your C library; your program goes through getaddrinfo. When they disagree, both are telling the truth. Use getent ahosts name on Linux (the same path as your program) and dscacheutil -q host -a name name or scutil --dns on macOS, where apps and dig can use different resolvers.
The five commands that settle most cases: dig name (status, flags, remaining TTL from your resolver), dig @ns1.zone.example name +norecurse (the zone's own answer, aa flag, no cache in between), dig +trace name (the walk from the root, done by dig itself), dig +cd name and delv name (is it DNSSEC, and which link failed), and getent ahosts name (what your program sees). Every symptom below names its command.
| Command | What it tells you |
|---|---|
dig name | The status (NOERROR, NXDOMAIN, SERVFAIL), flags, answer and the remaining TTL from your resolver |
dig name twice, a few seconds apart | TTL falling: served from a cache; TTL back at its maximum: the resolver just fetched it. Different numbers each time: several caches behind one address (seen in section 5: 292, then 212 five seconds later, for api.anthropic.com from one public resolver) |
dig @ns1.zone.example name +norecurse | What the zone's own server says, with no cache in between (look for the aa flag) |
dig +trace name | The walk from the root, done by dig itself: separates "the zone is wrong" from "my resolver cached something wrong". Fails behind interception (section 2) |
dig zone SOA | The SOA's TTL and last field: how long a "no" will be cached |
dig name +dnssec and dig name +cd | The ad flag means validated; a SERVFAIL that turns into an answer with +cd is a DNSSEC failure |
delv name | Validates the chain itself and says which link failed |
dig +tcp name, dig +bufsize=512 name | Whether TCP 53 works; whether big answers truncate |
dig +tls @1.1.1.1 name, dig +https @1.1.1.1 name | Encrypted DNS (dig 9.18 and later); add +tls-ca to check the certificate. kdig (Knot) and doggo do the same and DoQ |
dig @1.1.1.1 id.server CH TXT | Which instance of a public resolver answered, or whether something else did |
dig name +nsid | Asks the server to say which instance answered (the NSID option, RFC 5001), useful behind anycast |
dig -x 10.53.0.80 | Reverse lookup (PTR under in-addr.arpa) |
curl -w '%{time_namelookup}\n' -o /dev/null -s URL | How long the lookup took inside a real client: about 5.0 s means a lost packet |
Compare three answers: the zone's own server, your resolver and a public resolver. If the zone's server is wrong, fix the zone; if only your resolver is wrong, it is a cache or split horizon; if only the public one is wrong, it is still caching the old answer. nslookup works but uses its own resolution path and hides details; ISC once deprecated it and then reversed that (BIND changes, entry 1700), so prefer dig and getent.
| Symptom | Usual cause | Command that shows it | Fix |
|---|---|---|---|
| Lookups that take 5.0 s (2.5 s on Alpine), sometimes | A lost UDP packet: conntrack race, overloaded resolver, packet-rate limit | curl -w '%{time_namelookup}'; resolver drop counters | Newer kernel, NodeLocal DNSCache, timeout:1, fewer queries |
| Every lookup 5 s slower, always | The first nameserver is dead (glibc asks in order) | cat /etc/resolv.conf; dig @each-server name | Remove or reorder it |
| CoreDNS hot, mostly NXDOMAIN | ndots:5 search-list amplification | CoreDNS NXDOMAIN rate; a capture in one pod | Trailing dots, ndots 1 or 2, autopath |
| "Name or service not known" for a record you just created | Negative caching of an earlier miss (Failure lab: "NXDOMAIN") | dig zone SOA | Wait min(SOA TTL, MINIMUM); keep MINIMUM low |
| Some clients still on the old address | TTL not lowered in advance; JVM cache; long-lived connections (Failure lab: "Stale answer") | dig through each resolver; check connection age | Lower the TTL one old-TTL ahead; recycle connections |
| Works on the laptop, NXDOMAIN in CI | Split horizon: internal name, public resolver (Failure lab: "Wrong resolver") | dig @internal name against dig @public name | Use the internal resolver, or publish the name |
| SERVFAIL for one zone, everything else fine | Broken DNSSEC, or the zone's servers down or lame (Failure lab: "SERVFAIL") | dig +cd name; dig +trace name | Fix signatures or delegation; ask the zone owner |
| SERVFAIL for every name after 11 October 2026 | A validating resolver with only the old root key | dig +cd . works, dig . SOA fails | Update the trust anchor (section 9) |
| A TLS error for a big public site on one machine | DNS answered by a filter or proxy (Failure lab: "A TLS error caused by DNS") | dig @1.1.1.1 id.server CH TXT | Encrypted DNS or the network's own resolver |
| Big answers fail, small work | TCP 53 blocked, or fragments dropped | dig +tcp, dig +bufsize=512 | Open TCP 53; advertise 1,232 |
Optional: rehearsal and look-up, closed by default.
Pick an answer before reading the explanation.
What happens, step by step, when your service calls an API by name for the first time?getaddrinfo reads /etc/hosts and /etc/resolv.conf, expands the name with the search list if it has fewer than ndots dots, and sends A and AAAA questions over UDP to the configured resolver. On a cache miss the resolver asks a root server (usually cached), the TLD's servers (usually cached) and the zone's servers, following referrals, validating DNSSEC if configured, caching every answer for its TTL. The stub returns the addresses; the client then opens TCP or QUIC to one of them and starts TLS with the name as SNI. Costs: one round trip to the resolver plus up to one per uncached level; failure modes: timeouts, NXDOMAIN, SERVFAIL, stale caches.
You changed a record ten minutes ago; half your users still reach the old server. Why, and what would you have done differently?
Resolvers cached the old answer for its TTL, which was probably long, and some clients cache beyond the TTL (JVM settings, long-lived connections). Nothing propagates; caches expire. Plan: lower the TTL to about 60 s at least one old TTL before the change, make the change, keep the old server running until the old TTL has passed, then raise the TTL. For name-server changes allow 48 hours, the TLD's delegation TTL.
Pods see occasional 5-second delays on outbound calls. How do you diagnose it?
Exactly 5 s (2.5 s on musl) is the stub's retry timeout, so a DNS packet was lost. Measure lookup time separately (curl -w %{time_namelookup}), check the kernel version for the conntrack races (fixed by 5.6), the CoreDNS and node drop counters, the VPC resolver's packet limit, and the query volume from ndots:5. Fixes: NodeLocal DNSCache, trailing dots or lower ndots, single-request-reopen on old kernels, connection reuse to cut lookups.
What does DNSSEC protect against, and what does it not?
It proves an RRset (or a non-existence) is what the zone owner signed, defeating cache poisoning and on-path forgery between resolver and authoritative servers. It does not encrypt, does not protect the stub-to-resolver hop unless the stub validates, does not authenticate the server you connect to, and adds a failure mode: a signing error makes validating resolvers return SERVFAIL (.de, May 2026). Privacy comes from DoT, DoH or DoQ; server identity from TLS.
An agent tool fetches URLs a model chooses. How can DNS be used to make it read cloud credentials, and how do you stop it?
DNS rebinding: the tool checks the URL's host resolves to a public address, then its HTTP library resolves again and gets 169.254.169.254 (TTL 0 defeats caches). Fix: resolve once, validate the IP against a denylist of private, loopback and link-local ranges, connect to that IP with the Host header and SNI set, re-validate on redirects, and require IMDSv2 so a plain GET to the metadata service fails. The lab reproduction on this page shows both versions.
Why is DNS mostly UDP, and when does it use TCP?
A question and an answer usually fit in one datagram, so UDP avoids a handshake. Answers larger than the client's advertised size (512 bytes without EDNS, typically 1,232 with it) come back truncated with TC set and the client retries over TCP; zone transfers use TCP; DoT uses TLS over TCP. TCP support is mandatory (RFC 7766), and blocking TCP 53 breaks large answers.
example.com.), which must hold SOA and NS and so cannot be a CNAME.clusterIP: None whose name returns every ready pod's address.c0 0c) standing for a name already written earlier in the message.Every link was checked on 5 October 2026; links to this knowledge base go by page id. Times are reading times for the part worth reading; this knowledge base's pages give their own estimates.
The overview this page deepens (its section 3 is DNS on one screen). Its Failure lab tab reproduces six DNS failures with every client's exact error: NXDOMAIN, SERVFAIL, Stale answer, Wrong resolver, Kubernetes ndots, and A TLS error caused by DNS; its Protocol atlas tab has DNS, DoT, DoH and DoQ checked against their RFCs. About 33 min.
UDP, ports, sockets, MTU and fragmentation: what DNS rides on. About 49 min.
CAA, DNS-validated certificates, Encrypted Client Hello and the TLS under DoT and DoH. About 45 min.
What happens once the address is known; how HTTPS records advertise HTTP/3. About 45 min.
Load balancing and service discovery beyond DNS; its section 8 balances gRPC at L4, at L7 and in the client over a headless Service (section 7 here). About 52 min.
Cloud credentials and the metadata service that rebinding targets. About 42 min.
The Host-header check that stops DNS rebinding against local MCP servers, recorded. About 37 min.
What the ranks do once they have found each other through the headless service of section 7. About 32 min.
torchrun, rendezvous, NCCL and the hangs a multi-node job meets at start-up. About 35 min.
How a GPU job becomes running pods: scheduling, operators, RDMA networking; the cluster this page's section 7 resolves names in.
Kubernetes and orchestration for ML, where service discovery lives. About 29 min.
Timeouts, retries and backoff as a system: what to do with EAI_AGAIN and 5-second stalls. About 40 min.
The 1987 model and wire format; sections 2 to 5 of 1034 and section 4 of 1035 are still the best explanation. 1 h 20 min each; 40 min for the parts named.
Every term defined precisely, with where each comes from. Look-up reference; 1 h 20 min in full.
Why a "no" is cached and for how long. 30 min.
Record shapes, DNS policies, dnsConfig. With the DNS specification for the exact records. 20 min plus 30 min.
The clearest write-up of search-list amplification. 15 min.
The original analysis of the 5-second stalls (archived copy; the original address now serves unrelated content). 20 min.
The resolver section explains every musl result on this page. 10 min.
The best modern case study of a DNS control-plane failure. 25 min.
How a DNSSEC signing bug took down a country's domains. With Cloudflare's view from a resolver. 15 min plus 15 min.
The dated plan for 11 October 2026 and what operators should check. 15 min.
The two resolvers used in this page's lab; the options named on this page (qname-minimisation, serve-expired, loop, autopath, cache) are each one short entry. Reference.
The measurement behind section 10's comparison of encrypted transports. 40 min.