channel querylog{
file "/var/log/querylog";
severity debug 10;
print-category yes;
print-time yes;
print-severity yes;
};
category queries { querylog;};
2) Create the log file
touch /var/log/querylog chown named.named /var/log/querylog3) Reload named.conf
service named reload4) Enable the logging channel
rndc querylog on5) View the log
tail -f /var/log/querylogTo save disk space you should disable logging once you've completed your log inspection
rndc querylog off echo > /var/log/querylog
No comments:
Post a Comment