Generating key points…
Answers are grounded in this paper and cite their sources.
The Domain Name System (DNS) supports service discovery and communication in Kubernetes-based microservices, but repeated queries can increase resolution latency and resource demands. Previous optimization results were reported for larger or different environments and cannot be generalized directly to resource-constrained nodes. This study compares default CoreDNS with using NodeLocal DNSCache in a single-node k3s virtual machine allocated 4 vCPUs and 4 GB RAM, with one Service backed by 20 dummy Pods as the workload. The quantitative comparative experiment reports tests with 1,000 DNS queries using dnsperf v2.14.0 and repeated dig queries to observe cache-hit behavior, while pod memory was observed using kubectl top. Under the reported burst-load test, default CoreDNS achieved 2,050 queries per second (QPS) with 36.5 ms mean latency, whereas NodeLocal DNSCache achieved 249 QPS with 383.9 ms mean latency and a reported upper latency value of 1,504.0 ms; both scenarios recorded a 0.00% drop rate. During repeated cache-hit queries, NodeLocal DNSCache recorded 4.0–6.0 ms, approximately 85% below the reported default-CoreDNS mean, although these measurements used different test conditions. Memory observations were 14 Mi per CoreDNS pod and 9 Mi per NodeLocal DNSCache pod, a difference of about 35.7%; these values do not represent total DNS-system memory because the upstream CoreDNS remains required. The results indicate potential benefits for repeated queries but poorer performance for the observed burst workload. Because testing was confined to one node, multi-node scalability remains an architectural implication rather than a demonstrated experimental result, and further testing on multi-node clusters is recommended.
No takes yet. Share an insight, caveat, or question.
Rahmaniar et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: