First of all, thank you so much for your effort taking care for such a good free project!
Not fully pfSense related, but unbound.
I would like to log the IP answered by unbound when queried.
On the unbound documentation there are some options, like log-queries:, log-replies:, log-tag-queryreply: and they do log the source host that queried the domain, and the same host when returned the answer. As I can't find anything there, is that I would like to ask, is there some option to log the IP that was answered, within the answer log?
Example: with that options that I mentioned, I can achieve the next, that is to log who queried what, but in the answer I can't get to log the google IP that was queried without increasing the log verbosity
query: 192.168.2.10 www.google.com. A IN
reply: 192.168.2.10 www.google.com. A IN NOERROR 0.068642 0 48
I expect to see
reply: 192.168.2.10 www.google.com. A IN NOERROR 0.068642 0 48 (18.104.22.168 or whatever IP google passed to me)
Thank you again!
Gertjan last edited by
and also, have a look at the pfSense unbound.conf in /var/unbound/
The thing is - line 14 :
which, according to the unbound manual, overrides settings like : logfile
See, for example, here : https://snippets.khromov.se/enable-logging-of-dns-queries-in-unbound-dns-resolver/ - the usage of "logfile".
So everything will get send to the syslog, and wind up in the circular 'resolver.log' file.