axios-cached-dns-resolve

JSON →
library 3.3.0 ·javascript
verified Jun 7, 2026

Axios interceptor that replaces synchronous dns.lookup with async dns.resolve, with optional caching and background refresh. Version 3.3.0 targets Node >=14, ships TypeScript types, and uses ESM only. Key differentiators: configurable TTL, idle eviction, round-robin across resolved IPs, and built-in statistics. Designed for Kubernetes/cloud environments where low DNS TTLs overwhelm default synchronous resolution.