Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103654368
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-03-22 22:32:50

来源:赛迪网    作者:kid

# 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/sysconfig/selinux配置信息)

然后查看采集到的/var/named/chroot/var/named/named.log是否存在故障信息

#LOG 配置信息

logging {
        channel default_syslog { syslog local2; severity error; };
        channel audit_log {
                file "named.log" versions 3 size 20m;
                severity info;
                print-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; };
};
阅读(170) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~