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

Paul Chambers bod at bod.org
Wed Jul 23 21:59:25 BST 2008


IIRC, the stats and cache dump are logged at a lower priority than the 
usual dnsmasq messages, and it's below the cutoff usually defined for 
/var/log/messages in syslog.conf, so you won't see them there without 
making changes to syslog.conf.

Three options come to mind; either
1) drop that threshold in syslog.conf,
2) add a line to syslog.conf to log all messages logged to the DAEMON 
facility (or whatever you've set with log-facility) to another file. Be 
aware that the default changes to LOCAL0 if you run dnsmasq -d.
3) switch to file-based logging.

Paul

Brad Morgan wrote:
> Quoting from the man page:
>
>        When it receives a SIGUSR1, dnsmasq writes  statistics  to  the
> system
>        log.  It  writes  the cache size, the number of names which have had
> to
>        removed from the cache before they expired in order to  make  room
> for
>        new  names  and  the total number of names that have been inserted
> into
>        the cache. For each upstream server it  gives  the  number  of
> queries
>        sent, and the number which resulted in an error. In --no-daemon mode
> or
>        when full logging is enabled (-q), a complete dump of the  contents
> of
>        the cache is made.
>
> I've started dnsmasq with -q and send it a SIGUSR1. I see in
> /var/log/messages the statistics, but I don't see any of the queries or the
> complete dump of the cache.
>
> I also tried log-queries in the dnsmasq.conf file.
>
> Do I have to specify a log file and not use syslog?
>
> Regards,
>
> Brad
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>   




More information about the Dnsmasq-discuss mailing list