[Dnsmasq-discuss] Selective logging for "log-queries"

richardvoigt at gmail.com richardvoigt at gmail.com
Mon Jun 22 02:23:27 BST 2015


Configure dnsmasq to log via syslog, and filter there.

The relevant configuration option is:

*-8, --log-facility=<facility>* Set the facility to which dnsmasq will send
syslog entries, this defaults to DAEMON, and to LOCAL0 when debug mode is
in operation. If the facility given contains at least one '/' character, it
is taken to be a filename, and dnsmasq logs to the given file, instead of
syslog. If the facility is '-' then dnsmasq logs to stderr. (Errors whilst
reading configuration will still go to syslog, but all output from a
successful startup, and all output whilst running, will go exclusively to
the file.) When logging to a file, dnsmasq will close and reopen the file
when it receives SIGUSR2. This allows the log file to be rotated without
stopping dnsmasq.

On Sun, Jun 21, 2015 at 7:48 PM, Richard Nelson <unixabg at gmail.com> wrote:

> Greetings,
>
>
> On Sun, Jun 21, 2015 at 1:32 AM, reiner otto <augustus_meyer at yahoo.de>
> wrote:
>
>> Option "log-queries" generates a lot of info. Is there any means, to log
>> less info ? Particularly, I am only interested in the DNS-request, arriving
>> at dnsmasq.
>>
>>
> I too am interested in how to achieve this.
>
>
>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150621/f2c3564e/attachment.html>


More information about the Dnsmasq-discuss mailing list