dnscache icon indicating copy to clipboard operation
dnscache copied to clipboard

dnscache for Node

Results 9 dnscache issues
Sort by recently updated
recently updated
newest added

Hi! Reading about the possibility to add caching capabilities to nodejs DNS module (which it seems it's not going to happen), there's a comment in this thread with a warning...

Can you add mantainers to solve pending issues/pr?

https://github.com/yahoo/dnscache/pull/10 Swapped out a [custom `deepCopy` with `lodash.clone`](https://github.com/yahoo/dnscache/commit/def902cb56963488d56824e58479082aca6ca5eb#diff-6d186b954a58d5bb740f73d84fe39073R8), however, `lodash.clone` is only a shallow clone. I think [`lodash.deepClone`](https://lodash.com/docs/4.17.11#cloneDeep) was the intent, although there are [better options](https://github.com/ahmadnassri/benchmark-node-clone) when LoDash isn't already...

this test fails: ``` it('should error on invalid reverse lookup', function(done) { dns.reverse('1.1.1.1', function(err) { assert.ok((err instanceof Error)); done(); }); }); ``` with: ``` Uncaught AssertionError [ERR_ASSERTION]: false == true...

use 0.42.42.42 as invalid IP address as per https://stackoverflow.com/a/10456069

Let's say I cache all the results for an hour. What would happen if you get a bad hostname that the library is not able to resolve for a minute...

Unlike `ttl`, if cached item expired by `keepalive`, it return the cached value, and make asynchronously dns request for update the cache.

I'm looking for a way to only cache names for a given domain. So I'm thinking having a filter option that takes a regular expression for example, if one wants...

The dns server of our data center is unstable, so i use dnscache to fix it, and it works most of the time, but when cache expired and dns server...