[Dnsmasq-discuss] Re: Where does the complete dump go?

Will Parsons oudeis at nodomain.invalid
Sat Jul 26 15:07:30 BST 2008


Brad Morgan wrote:
> After playing with dnsmasq log-queries for a while, I think there should be
> a signal that dynamically toggles this option. Stopping and starting dnsmasq
> doesn't work because it clears the cache and that's what I'm trying to
> discover... Is the wrong answer coming out of cache or is it coming from the
> DNS servers themselves and if so, which one if I have more than one to
> choose from.
>
> The particular problem I was having was that one of my email servers became
> unreachable. This went on for quite a while and upon investigation, the IP
> address for the server was wrong. I was using the OpenDNS servers and when
> using their web tools to query, I got a different answer than what was being
> returned to my client machine. I solved the problem at the time by going
> back to the DNS servers provided by my ISP but this started the search for
> how to get more information if it failed again.
>
> I'd rather not leave log-queries on all the time as it generates lots of log
> entries but I would like to turn it on when I have a problem (and off again
> after resolving the issue).
>
> Is this a reasonable request? Is there another way to accomplish this?

Why not control it from the syslog side?  IOW, set (for example) in your
dnsmasq.conf:

log-queries
log-facility=local2

and set logging of local2 messages appropriately in syslog.conf.  When
you wish to change logging level, adjust syslog.conf appropriately and send
syslogd SIGHUP.

-- 
Will




More information about the Dnsmasq-discuss mailing list