Also zuerst legst du die Datei
/etc/bind/named.conf.log
an in die du folgendes schreibst:
logging {
channel query_log {
file "/var/log/named/query.log" versions 3 size 5m;
// Set the severity to dynamic to see all the debug messages.
print-category yes;
print-severity yes;
print-time yes;
severity dynamic;
};
channel update_debug {
file "/var/log/named/update_debug.log" versions 3 size 5m;
severity debug ;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_info {
file "/var/log/named/security_info.log" versions 3 size 5m;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
channel bind_log {
file "/var/log/named/bind.log" versions 3 size 5m;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category queries {
query_log;
};
category security {
security_info;
};
category update-security {
update_debug;
};
category update {
update_debug;
};
category lame-servers {
null;
};
category default {
bind_log;
};
};
Danach öffnest du die Datei
/etc/bind/named.conf
und fügst am Ende folgendes ein
include "/etc/bind/named.conf.log";
Jetzt legst du das neue Verzeichnis an und stellst die Berechtigungen ein
mkdir /var/log/named
chown -R bind:root /var/log/named
chmod -R 775 /var/log/named
Und jetzt brauchst du bind nur noch neu starten.