Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-dns-cache-resolver

Caching DNS Resolver Internals (NodeLocal DNSCache, Negative TTL & Coalescing)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Caching DNS Resolver Internals (NodeLocal DNSCache, Negative TTL & Coalescing) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-dns-cache-resolver/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-dns-cache-resolver)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-dns-cache-resolver)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-dns-cache-resolver" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Caching DNS Resolver Internals (NodeLocal DNSCache, Negative TTL & Coalescing) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["App / K8s Pods"]
  n1_1[("Local Cache Daemon")]
  n2a_2["In-Flight Coalescer"]
  n2b_3["Prefetch & Serve-Stale"]
  n3_4["Upstream CoreDNS / ISP"]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Lookup UDP · DNS"| n1_1
  n1_1 -->|"2a. Singleflig · RAM"| n2a_2
  n1_1 -.->|"2b. Prefetch · Async"| n2b_3
  n2a_2 -->|"3a. Miss query · DNS/TCP"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • App / K8s PodsSTATELESS
    High-QPS FQDN Lookups
  • Local Cache DaemonSTATEFUL
    Unbound / NodeLocal DNSCache
  • In-Flight CoalescerSTATELESS
    Dedups identical misses -> 1 req
  • Prefetch & Serve-StaleSTATELESS
    Refreshes hot keys before expiry
  • Upstream CoreDNS / ISPSTATELESS
    TCP upgrade avoids conntrack drop
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. App / K8s Pods → Local Cache Daemon (Lookup UDP)[DNS]
  2. Local Cache Daemon → In-Flight Coalescer (Singleflig)[RAM]
  3. Local Cache Daemon → Prefetch & Serve-Stale (Prefetch)[Async]
  4. In-Flight Coalescer → Upstream CoreDNS / ISP (Miss query)[DNS/TCP]
  5. Prefetch & Serve-Stale → Upstream CoreDNS / ISP (Sync)[Control]
  6. Upstream CoreDNS / ISP → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →