[Pdns-users] pdns-recursor query logging of cached requests
otto at drijf.net
Thu Nov 3 14:33:18 UTC 2022
On Thu, Nov 03, 2022 at 02:08:53PM +0100, Marco Kleefman via Pdns-users wrote:
> For compliancy reasons we are configuring query logging on our PowerDNS
> recursor instances (running 4.7.3).
> For normal queries I see source-ip and content of DNS question. Example
> pdns_recursor: 2 [395002/1] question for 'www.exampledomain.com|A'
> from 10.11.12.13:56765
> For a cached query I only see this in my (journald + syslog) logging:
> pdns_recursor: 3 question answered from packet cache tag=0 from
> I tried increasing loglevel parameter to 7 (debug) but no additional
> logging becomes available for cached requests.
> Does anybody have any tips how to log the content of a query which gets
> answered from the cache?
> OS: CentOS 7.9.200
> PDNS: pdns-recursor.x86_64 4.7.3-1pdns.el7
> related config in /etc/pdns-recursor/recursor.conf:
The text logging is indeed limited. 4.8 (to be released in December)
will improve on that. You could try a beta version:
But in general, text logging is quite CPU intensive. I would use
protobuf logging, which is much easier on the CPU. See
More information about the Pdns-users