[Bug 4241] offer a verbosity level that does not log qnames in any case when using logfile

nusenu nusenu-lists at riseup.net
Mon Mar 25 21:46:00 UTC 2019


(moving this to the mailing list since the feature request
for privacy preserving logging got closed as wontfix
and this is not directly about that feature request)

bugzilla-daemon at nlnetlabs.nl:
> https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4241
> 
> --- Comment #2 from Wouter Wijngaards <wouter at nlnetlabs.nl> ---
> Hi Nusenu,
> 
> I think I can explain why you see additional log lines when you switch from
> syslog to logfile.  Unbound prints the same strings, but the 'info' or 'debug'
> or 'error' level of the string makes syslog treat the lines differently.  For
> example, I believe FreeBSD comes with syslog software that will move non-errors
> (eg. INFO or DEBUG flagged messages) to a different destination than the other
> messages.  After switching to a logfile, unbound prints all of them regardless
> of level.  You can also configure the syslog to not discard or move those
> messages elsewhere, I do not really know the config precisely; but some have
> features or messages per type, log level and source daemon.

How confident are you about unbound logging exactly the same thing to syslog and logfiles?

Here is what makes me less confident that the explanation above
actually applies here.

syslog is configured to include everything:

*.*		/var/log/all.log

-> nothing in the log for multiple hours.


Switching unbound to logfile (from syslog) and in just a few minutes
I get multiple of these multi-line entries (sanitized example):

info: validator: error. failed to classify response message:  ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 0
;; flags: qr ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 
;; QUESTION SECTION:
***********	IN	AAAA

;; ANSWER SECTION:
***********	****	IN	A	***********

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:
;; MSG SIZE  rcvd: ***



Note the "AAAA" vs. "A".

FreeBSD 12.0 
unbound 1.9.1


-- 
https://twitter.com/nusenu_
https://mastodon.social/@nusenu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20190325/773b3a67/attachment.bin>


More information about the Unbound-users mailing list