Hi,
On Fri, Sep 18, 2015 at 10:23:57PM +0100, Simon Kelley wrote:
[..snip..]
> > A SIGHUP also lets the daemon server the entries from the hostdir.
> > 
> > Cheers,
> >  -- Guido
> > 
> 
> Ok, a trivial attempt to reproduce this fails for me. I create a new
> file in the directory with a new name in it and I can immediately look
> up the new name. What is in your hosts file? Are the names or addresses
> re-used?

IT works now for, I have no idea what changed:

Addresses are not reused. They come and go but the IPs shouldn't
change. Here's a typical query:

 dnsmasq[8490]: query[A] sid from 127.0.0.1
 dnsmasq[8490]: /tmp/test/ sid is 192.168.122.46
 dnsmasq[8490]: query[AAAA] sid from 127.0.0.1
 dnsmasq[8490]: forwarded sid to 193.189.244.225
 dnsmasq[8490]: forwarded sid to 193.189.244.206
 dnsmasq[8490]: reply sid is NODATA-IPv6
 dnsmasq[8490]: query[MX] sid from 127.0.0.1
 dnsmasq[8490]: forwarded sid to 193.189.244.206

> 
> I would be interesting to set --log-queries, and to look at the cache
> dump created in the log by sending SIGUSR1.

 dnsmasq[984]: time 1442659875
 dnsmasq[984]: cache size 150, 0/418 cache insertions re-used unexpired cache 
entries.
 dnsmasq[984]: queries forwarded 257, queries answered locally 358
 dnsmasq[984]: queries for authoritative zones 0
 dnsmasq[984]: server 193.189.244.225#53: queries sent 181, retried or failed 4
 dnsmasq[984]: server 193.189.244.206#53: queries sent 178, retried or failed 35

What does not seem to work is that addresses removed from the file are
removed from the cache immediately. So if I remove the entry for sid it
will still be served.

Cheers and thanks a lot for looking into this and dnsmasq in general!
 -- Guido

Reply via email to