4 069
contributi
Riga 211: | Riga 211: | ||
# chmod g+r /var/lib/samba/private/dns.keytab | # chmod g+r /var/lib/samba/private/dns.keytab | ||
# chmod 664 /etc/bind/rndc.key | # chmod 664 /etc/bind/rndc.key | ||
</pre> | |||
Di default, Bind registra i suoi log tramite Syslog, e quindi nel file <tt>/var/log/syslog</tt>. Potrebbe però essere conveniente spostare i log del nostro DNS in un file separato. | |||
<br/> | |||
Per raggiungere lo scopo, è sufficiente modificare il file: | |||
<pre> | |||
# nano /etc/bind/named.conf.options | |||
</pre> | |||
aggiungendo la sezione: | |||
<pre> | |||
logging{ | |||
channel simple_log { | |||
file "/var/log/named/bind.log" versions 3 size 5m; | |||
severity warning; | |||
print-time yes; | |||
print-severity yes; | |||
print-category yes; | |||
}; | |||
category default{ | |||
simple_log; | |||
}; | |||
}; | |||
</pre> | </pre> | ||
Infine riavviamo Bind: | Infine riavviamo Bind: |