[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bind 9 unknown option 'logging'





On 12/06/15 15:31, tomas@tuxteam.de wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jun 12, 2015 at 03:21:26PM +0100, Gerard Hooton wrote:
Hi All,
I already sent that was but before I subscribed to the list.

I have included  the following in my named.conf

logging {
   channel bind_log {
     file "/var/log/bind/bind.log" versions 3 size 5m;
     severity info;
     print-category yes;
     print-severity yes;
     print-time yes;
   };
   category default { bind_log; };
   category update { bind_log; };
   category update-security { bind_log; };
   category security { bind_log; };
   category queries { bind_log; };
   category lame-servers { null; };
};

However I get the following error

Jun 12 14:21:52 scoil named[7161]: loading configuration from
'/etc/bind/named.conf'
Jun 12 14:21:52 scoil named[7161]: /etc/bind/named.conf.log:1:
                                           HERE^^^^^^^^^^^^^^^
unknown option 'logging'
Jun 12 14:21:52 scoil named[7161]: loading configuration: failure
Jun 12 14:21:52 scoil named[7161]: exiting (due to fatal error)

I have the following
3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64 GNU/Linux
BIND 9.8.4-rpz2+rl005.12-P1
Just a shot in the dark: your /etc/bind/named.conf seems to include
/etc/bind/named.conf, which itself most probably has a "logging"
stanza itself.

Perhaps this error message is Bind9's idiosyncratic way to tell
you that it doesn't like to see two logging entries?

Anyway, it might seem better for the sysadmin's sanity to modify
the logging stuff in /etc/bind/named.conf.log

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlV67SQACgkQBcgs9XrR2kYyJwCeIiuXnuFi6iovhwKtkPc6y2gL
Lh8An3zOpa3ZlZa6GWPAi/WA9QNRHXas
=Nz8Q
-----END PGP SIGNATURE-----


Thanks Tomás for you reply.
The only place that I have logging is in the named.conf.log which I include in named.conf as follows
include "/etc/bind/named.conf.log";

//Ger

--
Gerard Hooton.
Senior Technical Officer
School of Engineering.
University College Cork.
College Road.
Cork.
Ireland.
Tel: +353 21 4902296
Mobile: +353 852813491


Reply to: