Доброго времени суток!
Добавил в /etc/named.conf следующие строки и сервер перестал запускаться.
logging {
channel "query" {
file "/var/log/bind/query.log";
print-time YES;
print-severity NO;
print-category NO;
};
category default {
"query";
};
};
Делаю /etc/init.d/named restart. В ответ в консоли появляется сообщение Job failed, которого до этого не было. Вот что лежит в /var/log/messages.
Apr 7 15:58:12 inetserver named[20422]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
Apr 7 15:58:12 inetserver named[20422]: command channel listening on 127.0.0.1#953
Apr 7 15:58:12 inetserver named[20422]: couldn't add command channel ::1#953: address not available
Apr 7 15:58:12 inetserver named[20422]: isc_stdio_open '/var/log/bind/query.log' failed: file not found
Apr 7 15:58:12 inetserver named[20422]: configuring logging: file not found
Apr 7 15:58:12 inetserver named[20422]: loading configuration: file not found
Apr 7 15:58:12 inetserver named[20422]: exiting (due to fatal error)
Apr 7 15:58:12 inetserver named[20377]: Starting name server BIND ..failed
Apr 7 15:58:12 inetserver systemd[1]: named.service: control process exited, code=exited status=1
Apr 7 15:58:12 inetserver systemd[1]: Unit named.service entered failed state.
ls -la /var/log/bind
total 8
drwxrwxrwx 2 named named 4096 Mar 20 12:15 .
drwxrwxrwx 18 root root 4096 Mar 24 10:55 ..
-rwxrwxrwx 1 named named 0 Mar 20 12:15 misc.log
-rwxrwxrwx 1 named named 0 Mar 20 12:15 query.log