configure syslog prefix

Mike Hoskins (michoski) michoski at
Wed Jul 3 16:26:16 UTC 2013

-----Original Message-----

From: Shawn Bakhtiar <shashaness at>
Date: Wednesday, July 3, 2013 12:15 PM
To: "bind-users at" <bind-users at>
Subject: RE: configure syslog prefix

>I have not run multiple binds on the same box, but according to the man
>pages for named.conf (assuming you have a different configuration file
>for each instance) setup each to report to a different logging facility
>in named.conf:
>logging {
>  channel default_syslog {
>    syslog local7;
>    severity info;
>  };
>and in /etc/rsyslog.conf
># Save named messages firstnamedinstance.log
>(If you have logrotate installed)....You may also want to add a file in
>/etc/logrotate.d with the following info:
>/var/log/firstnamedinstance.log {
>    sharedscripts
>    postrotate
>        /bin/kill -HUP `cat /var/run/ 2> /dev/null` 2>
>/dev/null || true
>    endscript

Good call, and if you're running rsyslog go to rsyslog.conf/doc and read
about templates...  You can rewrite anything to your heart's content with
a little effort.

More information about the bind-users mailing list