Yes, it logs every query in detail, and with query source. Where is
unbound logging to? Syslog or a log file? The last statement in
unbound.conf determines which one (use syslog yes or use log-file
filename). You could try to use a logfile, because perhaps the syslog
connection fails and unbound cannot log at all (because syslog is
thwarted by chroot or permissions perhaps). Unbound needs to be able
to (re)open the log-file (as file permissions), so the logfile, and
perhaps directory, has to allow those permissions. When you kill -HUP
unbound it attempts to re-open the logfile with its (downlevelled)
user permissions - this is for log file rotation - but if it does not
have permission it cannot log.
Yes, it logs every query in detail, and with query source. Where
is unbound logging to? Syslog or a log file? The last statement
in unbound.conf determines which one (use syslog yes or use
log-file filename). You could try to use a logfile, because
perhaps the syslog connection fails and unbound cannot log at all
(because syslog is thwarted by chroot or permissions perhaps).
Unbound needs to be able to (re)open the log-file (as file
permissions), so the logfile, and perhaps directory, has to allow
those permissions. When you kill -HUP unbound it attempts to
re-open the logfile with its (downlevelled) user permissions - this
is for log file rotation - but if it does not have permission it
cannot log.