Your BIND log configuration is missing one set of curly brackets, and localo
should be local0
. You'll also need one or more category
keywords to send log messages to the custom logging channel you've just defined.
This is what it should look like:
logging {
channel syslog {
syslog local0;
severity info;
print-severity yes;
print-category yes;
print-time yes;
};
category default { syslog; };
# if there are no other 'category' statements,
# this will include everything except query logging.
};
If you have no category
statements at all, BIND will only use its built-in default logging channels, one of which is default_syslog
. It uses the syslog facility daemon
, so the messages won't match the local0
facility you're expecting in your rsyslog.conf
configuration.
You should use named-checkconf
to check your named.conf
for syntax errors. See https://bind.isc.org/doc/arm/9.11/man.named-checkconf.html for more information.