DNS Cache for Node.js

JSON →
library 1.0.2 ·javascript abandoned
verified May 27, 2026

dnscache is an unmaintained Node.js module (last published 7 years ago, current version 1.0.2) that transparently wraps the built-in `dns` module to provide an application-level caching layer for DNS lookup results. It operates on a GOF Proxy design pattern, intercepting all `require('dns')` calls to cache frequently accessed domain resolutions, aiming to reduce network latency and improve application performance. It offers configurable cache size and Time-To-Live (TTL) settings, and supports injecting a custom cache implementation. While it historically addressed Node.js's lack of built-in DNS caching, it is now largely superseded by more modern, actively maintained libraries and evolving Node.js DNS behaviors. There is no active release cadence, and it does not support modern ECMAScript Modules (ESM) syntax.

total hits 7
actors 4 distinct systems
last hit 7d ago Script
GPTBot
2
Script
1
Search engines
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany