A cacheable dns.lookup(…) that respects TTL
MIT License
Bot releases are visible (Hide)
query
and cache
requests (#65) ab8d286https://github.com/szmarczak/cacheable-lookup/compare/v6.1.0...v7.0.0
Published by szmarczak about 3 years ago
HostsResolver
in favor of the new DNS resolution system.dns.lookup(...)
for hostnames that only exist on the OS-side.fallbackDuration
option. By default it's set to 3600
(1 hour).QuickLRU
as the cache
option.cacheable.servers
no longer triggers cacheable.updateInterfaceInfo()
.cacheable.tick()
in favor of the new mechanism to remove outdated entries.cacheable.updateInterfaceInfo()
will now only clear the cache on interface removal.cacheable-lookup
.options.watchingHostsFile
e9125439e9be2bd6bf9b510fbe0ffb04c503d031false
, so the hosts
file is not being watched by default.Thanks goes to: @cesarfd @dylang @fluffynuts @hoilc and @kaatt for the discovery of new bugs! 🎉
dns.lookup(...)
(#15) dfefae26f67b5d78be6aaace795b3cb8fccf27d4