cached-dns
JSON →A lightweight DNS caching library for Node.js that wraps the built-in dns.lookup and dns.promises.lookup with a TTL-based cache. Current stable version is 0.0.4, released as a single module with TypeScript types. It provides a drop-in replacement for Node.js DNS resolution with configurable cache size and TTL. Key differentiators: same API as Node's dns module, supports callback and promise variants, optional global patching, and no external dependencies. Release cadence is low; package is minimal and focused.