Sitemap

Interview Guide

3 min readJul 23, 2026

Live Incident Handling — CoreDNS nDOTS Problem

🛠️ The Technical Breakdown (STAR Format)

Situation: What went wrong

  • Symptoms: User-facing application degraded under peak flash-sale load. Internal application logs flooded with socket timeouts (E TIMEDOUT) specifically when connecting to external vendors (e.g., Stripe, SendGrid).
  • Blast Radius: High-priority alert triggered via PagerDuty. API gateway error rates hit 35%, risking immediate revenue loss. Cloud provider DNS consoles reported a massive spike of millions of NXDOMAIN errors.

Task: What you needed to achieve

  • Objectives: Isolate the network bottleneck quickly, safely restore checkout service availability, and drive down the Mean Time to Resolution (MTTR) below our 30-minute SLA window. [1]

Action: What you did (Show your technical execution)

  1. Live Debugging: Injected a native Kubernetes ephemeral container into a failing app pod using kubectl debug -it <pod-name> --image=nicolaka/netshoot.
  2. Packet Analysis: Ran tcpdump -i any port 53 -n -vv to catch live DNS resolution traffic.
  3. The Discovery: Isolated the ndots:5 root cause. Observed that looking up ://stripe.com (which has 2 dots) triggered 4 sequential, wasteful internal cluster lookups (e.g., ://stripe.com.svc.cluster.local) before firing the 5th external request. Under load, this 5x traffic amplification crashed CoreDNS.
  4. Immediate Containment: Bypassed the deployment pipeline and injected a trailing dot to the external endpoint string in the application env vars (://stripe.com.). This forced the OS resolver to treat it as an absolute FQDN, skipping the search paths entirely.

Result: What improved

  • Recovery Metrics: Cluster DNS traffic instantly dropped by 75%. CoreDNS CPU usage normalized, and P99 application latency fell back to a healthy 140ms within 5 minutes of the update.
  • Business Value: Mitigated a critical SEV-1 incident within 25 minutes, preventing an estimated six-figure transaction loss.

🛡️ Blameless Post-Mortem & Prevention

Get Shubham Arora’s stories in your inbox

Join Medium for free to get updates from this writer.

The 5 Whys (Systemic Root Cause Analysis)

  1. Why did the app timeout? CoreDNS pods were crash-looping and dropping packets.
  2. Why were they crash-looping? They hit 100% CPU limits due to a massive wave of internal DNS lookups.
  3. Why was there a wave of lookups? The default Kubernetes ndots:5 setting forced external domains with fewer than 5 dots to check every internal cluster search path first.
  4. Why wasn’t this caught in staging? Staging environments utilized low-concurrency synthetic traffic that did not hit the upstream cloud provider’s DNS rate-limiting thresholds.
  5. Why was ndots:5 left as default? It is the standard vanilla Kubernetes configuration, and a platform-wide optimization policy hadn’t been codified into our base Helm templates yet.

Post-Mortem Corrective Action Items

  • Platform Fix (Short-Term): Updated our central Helm base charts to explicitly inject dnsConfig.options.ndots:1 into all microservice deployment manifests.
  • Architectural Fix (Medium-Term): Rolled out Node-local DNSCache as a cluster-wide DaemonSet to handle and cache DNS requests locally on individual worker node memory loops.

💡 Pro-Tips for Deep-Dive Follow-ups

  • The Caveat of ndots:1: Be ready if the interviewer asks: “Does setting ndots:1 break internal service-to-service discovery?”
  • Your Answer: “Yes, if you use short names like http://backend-service. To prevent this, we mandated that all internal cross-namespace communications use the full internal FQDN string: backend-service.namespace.svc.cluster.local."
  • Buzzwords to Drop: FQDN (Fully Qualified Domain Name), NXDOMAIN, Ephemeral Containers, netshoot, tcpdump, DaemonSet, Node-local DNSCache.