increasing logging verbosity

Alain Toussaint alain.toussaint at securivm.ca
Sat Feb 18 20:55:29 UTC 2012


Hello,
	I installed bind 9.8.1 on my gentoo home server, configuring a
single internal zone for my domain (securivm.ca) and it ran fine but lately,
I've been testing samba 4 and recompiling bind to support pkcs11 keys as
well as gssapi (kerberos) support but since then, bind doesn't run and I
would like to troubleshoot it and increase the verbosity of the logs.

For the moment, it is logging into syslog with only these messages:

Feb 18 15:49:52 johnson named[31695]: starting BIND 9.8.1-P1 -u named
Feb 18 15:49:52 johnson named[31695]: built with '--prefix=/usr'
'--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share'
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64'
'--sysconfdir=/etc/bind' '--localstatedir=/var' '--with-libtool'
'--enable-threads' '--with-dlopen' '--with-dlz-filesystem' '--with-dlz-stub'
'--without-dlz-postgres' '--without-dlz-mysql' '--with-dlz-bdb'
'--without-dlz-ldap' '--without-dlz-odbc' '--with-openssl' '--with-idn'
'--enable-ipv6' '--with-libxml2' '--with-gssapi' '--disable-rpz-nsip'
'--disable-rpz-nsdname' '--with-pkcs11' '--enable-linux-caps'
'--without-gost' '--with-randomdev=/dev/urandom'
'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu'
'CFLAGS=-O2 -pipe -I/usr/include/db4.8' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'
Feb 18 15:49:52 johnson named[31695]: adjusted limit on open files from 4096
to 1048576
Feb 18 15:49:52 johnson named[31695]: found 2 CPUs, using 2 worker threads
Feb 18 15:49:52 johnson named[31695]: using up to 4096 sockets

As for logging, according to the /etc/bind/named.conf, it should log in its
own log file:

logging {
        channel default_log {
                file "/var/log/named/named.log" versions 5 size 50M;
                print-time yes;
                print-severity yes;
                print-category yes;
        };

        category default { default_log; };
        category general { default_log; };
        category config { default_log; };
};

The directory /var/log/named does exist but there is no files in it and I
would like, first, to have bind log in its log file and second, turn
verbosity way up to figure out if it's a selinux permission problem, a samba
/ kerberos problem or something else entirely.

Thanks
Alain




More information about the bind-users mailing list