我在ubuntu 10.04.2LTS上安装了bind9,希望实现DDNS。按照man dhcpd.conf 的说明,在/etc/bind/name.conf中添加了LOG段:
代码: 全选
logging {
channel update_debug {
file "/var/log/update-debug.log";
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_info {
file "/var/log/named-auth.info";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category update { update_debug; };
category security { security_info; };
};
代码: 全选
sudo touch /var/log/update-debug.log
sudo chown bind.bind /var/log/update-debug.log
代码: 全选
named[7408]: logging channel 'update_debug' file '/var/log/update-debug.log': permission denied
kernel: [39629.957746] type=1503 audit(1305083903.592:44): operation="open" pid=7410 parent=7407 profile="/usr/sbin/named" requested_mask="ac::" denied_mask="ac::" fsuid=105 ouid=105 name="/var/log/update-debug.log"