Where to find log file for powerdns

Hi, i have just migrated to PowerDNS, and i am running some testing on it before i move it into my production. I just wanna know where can i find the log file for powerdns? there is no such file, is there anything i need to configure for my powerdns log?

Tags: PowerDNS Logs
user image Author :   hobbs
0

In default there is no log is generated for powerdns, we need to configure log for it if we need it. So open your powerdns configuration file

vim /etc/pdns/pdns.conf

Add the below value to enable logging facility

logging-facility=0

Now restart your service

service pdns restart

Now you can get the log for powerdns in your /var/log/messages file use the below command to grep it out all pdns log

cat /var/log/messages | grep pdns
user image
parthiban February 13, 2018
Add comment