DNS over HTTP Resolver
JSON →This package provides an isomorphic (browser and Node.js) DNS over HTTP (DoH) resolver, leveraging the `fetch` API for network requests. It offers an API interface designed to be compatible with Node.js's built-in `dns.promises` API, simplifying migration or usage in environments where a native DNS resolver is desired but not available or insufficient. The current stable version is 3.0.16, with releases occurring roughly monthly or bi-monthly, primarily for dependency updates and minor improvements. Key differentiators include its `fetch`-based approach, built-in caching (configurable `maxCache`), and the ability to specify custom DoH servers, making it flexible for various privacy and performance requirements beyond the default Cloudflare and Google servers. It ships with TypeScript types, enhancing developer experience and type safety.
Traffic · last 30 days ↓33% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany