[Dnsmasq-discuss] logging dns queries
Frederick C. Damen
fred at damen.org
Fri Mar 18 23:10:39 GMT 2011
Greetings,
Surprisingly enough it was high on my list to move the dhcp REQUEST/ACK
log messages from my /var/log/messages...
From reading this thread I would agree with both sides, syslog in
dnsmasq is not fully documented and syslog configuration is the place to
implement the fix.
Does dnsmasq assign different log levels to errors / start up /
configuration issues and 'this is what is currently happening' messages.
I would assume that --log-queries and --log-dhcp are at LOG_INFO or
LOG_DEBUG and everything else is higher?
I also noticed that the log messages in the /var/log/messages for the
DHCP REQUEST/ACK the string after the hostname and before the [pid], (I
assume this is the ident parameter to openlog), is 'dnsmasq-dhcp'. Am I
to assume that --log-queries will produce a value of 'dnsmasq-dns' and
other messages will produce just 'dnsmasq'? Or is this just wishful
thinking?
Please enlighten me as to the specifics.
thanks in advance,
Fred
On 03/18/2011 01:21 PM, richardvoigt at gmail.com wrote:
> On Fri, Mar 18, 2011 at 1:10 PM, Helmut Hullen<Hullen at t-online.de> wrote:
>> Hallo, Matthias,
>>
>> Du meintest am 18.03.11:
>>
>>>>>> Can I tell "dnsmasq" too to log the queries?
>>
>>>>> Find manual. Read manual. Look for --log-queries.
>>
>>>> It works - thank you!
>>>> But it's not as comfortable as the ISC-bind form: there I can define
>>>> a special log file only for named queries.
>>
>>> If you want BIND, use BIND. It's as simple as that. :-)
>>
>> But I don't want BIND. It's a monster.
>>
>>> I believe that Simon's documentation is complete, in other words, all
>>> features are documented in the manual page.
>>
>> You believe wrong.
>>
>> Some days ago I was told some features around "dhcp-script" which I
>> hadn't found in the documentation.
>>
>> And therefore I hope that the programmers know a simple but not yet
>> documented way for separate log files too.
>
> The syslog documentation is fairly complete. What you're looking for
> is not in the dnsmasq man page because it isn't provided by dnsmasq,
> it's provided by your syslog daemon, and therefore you should look
> there for documentation as well.
>
>>
>> Viele Gruesse!
>> Helmut
>>
>> _______________________________________________
>> 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
More information about the Dnsmasq-discuss
mailing list