Skip to main content
← PROBLEMS / SYSTEM-DESIGN
An end-to-end domain learning journey

Mitigating CoreDNS &
Conntrack UDP Storms.

Resolve 5-second EAI_AGAIN DNS timeouts and nf_conntrack exhaustion in high-QPS Kubernetes clusters.
Start the journey7 stages· Last modified Nov 24, 2026
FIRST PRINCIPLES. PRODUCTION SCALE.
The idea to keep with you

If latency budgets leave no room for synchronous retries, bypass UDP conntrack with DaemonSet NodeLocal DNSCache over TCP upstream and app-level TTL caching.

TL;DR30-second simplified summary
▾

High-volume UDP DNS lookups overflow Linux nf_conntrack tables and trigger 5-second glibc retry stalls. NodeLocal DNSCache serves hits over local loopback and upstreams via persistent TCP connections.

Full walkthrough · 7 stages
01
foundation

Stage 1: resolv.conf Mechanics.

Why this matters: Establish resolv.conf mechanics for Mitigating CoreDNS & Conntrack UDP Storms.

Think of Stage 1: resolv.conf Mechanics as the intuition layer for Mitigating CoreDNS & Conntrack UDP Storms: Establish resolv.conf mechanics for Mitigating CoreDNS & Conntrack UDP Storms.

Stage 1: resolv.conf Mechanics establishes how Mitigating CoreDNS & Conntrack UDP Storms behaves under real production load.

Lifecycle & Failure Recovery

Stage 1: resolv.conf Mechanics

probe passesburst > limitSIGTERM + preStopPending ScheduleReady (Serving)CFS / OOM RiskGraceful Drain
02
foundation

Stage 2: 10x Search Amplification.

Why this matters: Establish 10x search amplification for Mitigating CoreDNS & Conntrack UDP Storms.

Think of Stage 2: 10x Search Amplification as the intuition layer for Mitigating CoreDNS & Conntrack UDP Storms: Establish 10x search amplification for Mitigating CoreDNS & Conntrack UDP Storms.

Stage 2: 10x Search Amplification establishes how Mitigating CoreDNS & Conntrack UDP Storms behaves under real production load.

Engineering Decision Framework
Problem
How to implement Mitigating CoreDNS & Conntrack UDP Storms without hitting unbounded tail latency, state divergence, or operational fragility.
Naive Solution
Use a single unpartitioned path with unbounded retries and synchronous global coordination.
Why It Fails
Global coordination serializes throughput under load, while unbounded retries amplify transient stalls into full outages.
Alternatives
Compare synchronous strict-consistency paths against bounded asynchronous replication, local caching, or partitioned ownership.
Engineering Decision
If latency budgets leave no room for synchronous retries, bypass UDP conntrack with DaemonSet NodeLocal DNSCache over TCP upstream and app-level TTL caching.
Trade-Offs
Gains predictable p99 latency and fault isolation in exchange for explicit bounding, observability, and slightly higher implementation complexity.
Decision Exercise · Make the Call

When Mitigating CoreDNS & Conntrack UDP Storms experiences a sudden 5x traffic spike alongside a slow downstream dependency, which engineering choice best protects system stability?

03
intermediate

Stage 3: Conntrack UDP Drops.

Why this matters: Establish conntrack udp drops for Mitigating CoreDNS & Conntrack UDP Storms.

Think of Stage 3: Conntrack UDP Drops as the intuition layer for Mitigating CoreDNS & Conntrack UDP Storms: Establish conntrack udp drops for Mitigating CoreDNS & Conntrack UDP Storms.

Stage 3: Conntrack UDP Drops establishes how Mitigating CoreDNS & Conntrack UDP Storms behaves under real production load.

Component Topology

Stage 3: Conntrack UDP Drops

Ingress / LBingressK8s ControlcomputeWorker NodestorageApp Podscontrolactive trafficreconcileprobe / SIGTERM
04
intermediate

Stage 4: ndots:2 & Trailing Dot.

Why this matters: Establish ndots:2 & trailing dot for Mitigating CoreDNS & Conntrack UDP Storms.

Think of Stage 4: ndots:2 & Trailing Dot as the intuition layer for Mitigating CoreDNS & Conntrack UDP Storms: Establish ndots:2 & trailing dot for Mitigating CoreDNS & Conntrack UDP Storms.

Stage 4: ndots:2 & Trailing Dot establishes how Mitigating CoreDNS & Conntrack UDP Storms behaves under real production load.

05
intermediate

Stage 5: NodeLocal DNSCache.

Why this matters: Establish nodelocal dnscache for Mitigating CoreDNS & Conntrack UDP Storms.

Think of Stage 5: NodeLocal DNSCache as the intuition layer for Mitigating CoreDNS & Conntrack UDP Storms: Establish nodelocal dnscache for Mitigating CoreDNS & Conntrack UDP Storms.

Stage 5: NodeLocal DNSCache establishes how Mitigating CoreDNS & Conntrack UDP Storms behaves under real production load.

Request & State Flow

Stage 5: NodeLocal DNSCache

Control PlaneScheduler / IngressWorker NodePod / Container1. Apply desired replica & PDBspec2. Bind pod respecting CPU/memlimits3. Run readiness probe beforetraffic4. Drain in-flight connections onrollout
06
advanced

Stage 6: App TTL Caching.

Why this matters: Establish app ttl caching for Mitigating CoreDNS & Conntrack UDP Storms.

Think of Stage 6: App TTL Caching as the intuition layer for Mitigating CoreDNS & Conntrack UDP Storms: Establish app ttl caching for Mitigating CoreDNS & Conntrack UDP Storms.

Stage 6: App TTL Caching establishes how Mitigating CoreDNS & Conntrack UDP Storms behaves under real production load.

07
advanced

Stage 7: Production DNS Telemetry.

Why this matters: Establish production dns telemetry for Mitigating CoreDNS & Conntrack UDP Storms.

Think of Stage 7: Production DNS Telemetry as the intuition layer for Mitigating CoreDNS & Conntrack UDP Storms: Establish production dns telemetry for Mitigating CoreDNS & Conntrack UDP Storms.

Stage 7: Production DNS Telemetry establishes how Mitigating CoreDNS & Conntrack UDP Storms behaves under real production load.

Practice · Explain the consequences

Practice: Make the trade-off yourself.

Question 1 of 3
Score: 0/3

Why does ndots:5 amplify external DNS lookups (Check 1)?

Recommended Learning Flow