Взялся я за bind. Согласитесь, искать сообщения от бинда в системном логе (syslog) так себе удовольствие. Поэтому, чтобы писать логи в отдельные файлы, создаём директорию (не забываем про права):
#mkdir /var/log/named
В конфиг bund /etc/bind/named.conf.local добавляем такие строки:
logging {
channel bind_log {
file "/var/log/named/named.log";
print-time yes;
print-category yes;
print-severity yes;
};
channel update_debug {
file "/var/log/named/update-debug.log";
severity debug 3;
print-time yes;
print-category yes;
print-severity yes;
};
channel security_info {
file "/var/log/named/security-info.log";
severity info;
print-time yes;
print-category yes;
print-severity yes;
};
category default { bind_log;};
category xfer-in { bind_log;};
category xfer-out { bind_log;};
category update { update_debug;};
category security { security_info;};
};
Сохраняем. Перезапускаем bind:
#systemctl restart bind9
В /var/log/named должны появиться файлы логов.