For PowerDNS/PDNS, logging is enabled by default, however, it's usually set to only the minimal verbosity level so as not to affect PDNS's performance. If you wish to set PDNS logging to the maximum level of verbosity then you can add the following options to PDNS's configuration file (/etc/pdns/pdns.conf):
log-dns-details log-dns-queries log-timestamp loglevel=6 query-logging webserver-loglevel=detailed
After adding these you need to restart PDNS with the following command to make sure that PDNS starts with the new configuration options in effect:
You can refer to the following link to see what each of these options mean:
Please bear in mind that, it's only recommended to keep these options for debugging purposes, as they can negatively affect PDNS's performance, so you need to remove these options after you are done debugging your issue.