Re: [Dnsmasq-discuss] min-cache-ttl overriding neg-ttl

2022-09-20 Thread Glenn Fowler
Hi, I am caching positive responses for 40 minutes (min-cache-ttl), but want negative responses cached for only 1 minute. If the forward zone server is down momentarily, all of the queries during that time could result in an erroneous negative response that gets cached for 40 minutes and

Re: [Dnsmasq-discuss] min-cache-ttl overriding neg-ttl

2022-09-20 Thread Geert Stappers via Dnsmasq-discuss
On Tue, Sep 20, 2022 at 10:41:29AM -0400, Glenn Fowler wrote: > Hello, > > I have observed that if min-cache-ttl time is greater than neg-ttl time, > then the neg-ttl time is ignored and negative responses are cached at the > min-cache-ttl time. > > The expected behavior should be that neg-ttl

[Dnsmasq-discuss] min-cache-ttl overriding neg-ttl

2022-09-20 Thread Glenn Fowler
Hello, I have observed that if min-cache-ttl time is greater than neg-ttl time, then the neg-ttl time is ignored and negative responses are cached at the min-cache-ttl time. The expected behavior should be that neg-ttl is independent of min-cache-ttl. In searching I did find that unbound had

[Dnsmasq-discuss] dnsmasq spins at 100% as soon as network is lost

2022-09-20 Thread bru red
dnsmasq version: 2.86OS, distro: linux, slackware 15.0 i use dnsmasq to provide dhcp for a tap interface. When i wake the computer up from sleep state, 80% or 90% chances are that it will spin at 100% cpu. I've heard that it might  be related to the fact that /etc/resolv.conf is empty before the