Better Lookup

JSON →
library 1.4.1 ·javascript
verified Jun 7, 2026

An async DNS lookup function for Node.js that implements atomic cache operations using throttling to ensure only one write-procedure occurs for concurrent requests. Current stable version is 1.4.1, with regular updates. Unlike alternatives like cacheable-lookup or dns-lookup-cache, it guarantees atomicity and supports /etc/hosts file on both Unix and Windows. Ships TypeScript types and requires Node.js >=14.