Kars CS Notes

Engineering notes on Linux networking, storage engines, and distributed systems.

Optimizing Local Recursive DNS Caching & Prefetching

Published 2026-10-08 · Networking

Reducing cold-connection setup time by pairing serve-expired with conservative negative TTL caps.

Most perceived web sluggishness on fresh domains stems from repeated 60-120ms DNS round trips. Enabling prefetch for hot records and capping negative NXDOMAIN caches keeps resolution under 1ms locally.

← Back to Home