Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 23rd January 2009, 20:43
radim_h radim_h is offline
Senior Member
Join Date: Jan 2007
Location: Prague, Czech
Posts: 426
Thanks: 34
Thanked 26 Times in 21 Posts
Send a message via ICQ to radim_h
Default how to setup bind9 logging for ISPC2 on Debian Lenny (/etc/default/rsyslog)


im moving server with ispconfig 2.2.29 on Debian Lenny

Evertyhing seems to working fine
but i have no idea how to setup bind9 logging
as described here
changing SYSLOGD="-a /var/lib/named/dev/log"
in /etc/default/syslogd

(i actually don't know what is this change doing)

as Lenny is using rsyslog by default

how should i change /etc/default/rsyslog ?
there is by default

# Options for rsyslogd
# -m 0 disables 'MARK' messages (deprecated, only used in compat mode < 3)
# -r enables logging from remote machines (deprecated, only used in compat mode < 3)
# -x disables DNS lookups on messages received with -r
# -c compatibility mode
# See rsyslogd(8) for more details

Thanks for any help

btw: all others descibed in prefects setup for etch is working
except there is no package libdb4.3-dev i have replaced it with libdb4.6-dev

Last edited by radim_h; 23rd January 2009 at 21:03.
Reply With Quote
Sponsored Links
Old 24th January 2009, 14:27
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

Can you run
man rsyslogd
and check if there's also a -a switch available for rsyslogd?
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 24th January 2009, 14:33
radim_h radim_h is offline
Senior Member
Join Date: Jan 2007
Location: Prague, Czech
Posts: 426
Thanks: 34
Thanked 26 Times in 21 Posts
Send a message via ICQ to radim_h

there is not -a option.

Sorry for bothering, i have found the solution here: http://www.dmo.ca/blog/20081009143754

So all we need to do is:

Stop bind:

/etc/init.d/bind9 stop
edit (create)
nano /etc/rsyslog.d/bind-chroot.conf and add line
$AddUnixListenSocket /var/lib/named/dev/log
check the you have added following in bind conf as described in etch perfect setup
nano /etc/default/bind
OPTIONS="-u bind -t /var/lib/named"
restart rsyslog
/etc/init.d/rsyslog restart

make sure it creates /dev/log in the chroot:
ls -al /var/lib/named/dev/log
srw-rw-rw- 1 root root 0 2009-01-24 13:45 /var/lib/named/dev/log
start bind
/etc/init.d/bind9 start
and make sure in works
ps ax | grep [n]amed
28512 ?        Ssl    0:00 /usr/sbin/named -u bind -t /var/lib/named

Last edited by radim_h; 19th March 2009 at 20:44.
Reply With Quote
The Following User Says Thank You to radim_h For This Useful Post:
falko (25th January 2009)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting On PXE And On A Customized Debian System sebastienp HOWTO-Related Questions 7 30th July 2009 22:13
Howto upgrade from Debian 4 (Etch) to Debian 5 (Lenny) Hans Tips/Tricks/Mods 2 2nd December 2008 00:40
Perfect setup Debian Etch ISPConfig - DNS Server kdclaver Installation/Configuration 16 28th December 2007 02:39
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 01:57
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42

All times are GMT +2. The time now is 03:29.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.