澳门永利集团网址3049797:在Linux操作系统上配置DNS服务器的日志

05月07日作者:黑曼巴


# touch /var/named/chroot/var/named/named.log

# chown named.named /var/named/chroot/var/named/named.log

# chmod 755 /var/named/chroot/var/named/named.log

# service named restart

并且确保 selinux是关闭状态(查看/etc/sysconfi澳门永利集团网址3049797g/selinux设置设置设备摆设摆设信息)

然后查看采集到的/var/nam澳门永利集团网址3049797ed/chroot/var/named/named.l澳门永利集团网址3049797og是否存在故障信息

#LOG 设置设置设备摆设摆设信息

logging {

channel default_syslog { syslog local2; severity error; };

channel audit_log {

file "named.log" versions 3澳门永利集团网址3049797 size 20m;

severity info;

prin澳门永利集团网址3049797t-time yes;

print-category yes;

};

category default { audit_log; };

category general { audit_log; };

category security { audit_log; default_syslog; };

category config { default_syslog; };

category resolver { audit_log; };

category xfer-in { audit_log; };

category xfer-out { audit_log; };

category notify { audit_log; };

category client { audit_log; };

category network { audit_log; };

category update { audit_log; };

category queries { audit_log; };

category lame-servers { audit_log; };

};

最近关注

热点内容

更多