dnscache icon indicating copy to clipboard operation
dnscache copied to clipboard

support refresh cache perodicly

Open tangxinfa opened this issue 9 years ago • 3 comments

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 is unstable the same time, our service is interrupted until dns server works again.

One solution i think is add a refresh time option(less then ttl time), when cached item not expired but need refresh, resolve it async, update cache if resolve succussfully.

tangxinfa avatar Nov 01 '16 06:11 tangxinfa

I already implemention this feature in my branch feature-keepalive, i will test it in production envirement these days.

Anybody have intresting on this feature can install it and give it a try:

npm install "tangxinfa/dnscache#feature-keepalive"

tangxinfa avatar Nov 22 '16 13:11 tangxinfa

Hi,

Pull requests are most welcome.

drewfish avatar Nov 22 '16 22:11 drewfish

Hi, I created a pull request: add keepalive option #17, please have a look, thanks:)

tangxinfa avatar Nov 24 '16 12:11 tangxinfa