To set up Debug-level logging with named / bind9, as root edit the config file (generally at /etc/named.conf) and add this stanza:
Create the specified log file:
Set the correct owner:
Reload your config:
And watch that file:
Note that, with LogLevel severity set to 'debug', you're going to get a lot of info in that file, which should be limited to 1megabyte per the config, but you may want to change the loglevel or remove logging completely once you've resolved your issue. More info here from the Debian project.
logging {
channel named_log {
file "/var/log/named.log" versions 3 size 1m;
severity debug;
print-category yes;
print-severity yes;
print-time yes;
};
category default { named_log; };
category lame-servers { named_log; };
category update { named_log; };
category update-security { named_log; };
category security { named_log; };
};
Create the specified log file:
# touch /var/log/named.log
Set the correct owner:
# chown named /var/log/named.log
Reload your config:
# /etc/init.d/named reload
And watch that file:
# tail -f /var/log/named.log
Note that, with LogLevel severity set to 'debug', you're going to get a lot of info in that file, which should be limited to 1megabyte per the config, but you may want to change the loglevel or remove logging completely once you've resolved your issue. More info here from the Debian project.