BIND DNS

BIND DNS

bind 9.3.6 from the official CentOS 5.4 (Final) repos didn't support the "size" parameter.

The "size" parameter is declared inside the named.conf file, namely at the "logging" section.

  • Check "man named.conf" to verify if your version of BIND DNS supports it.

In my case I noticed that named.run grows to 1003M (1050803867) and remains so.

Since I don't need such a huge log file, I deemed it safe to weekly delete it.

As a brutal countermeasure, I made this simple script:

vi /etc/cron.weekly/rm-var-named-data-named.run

Copy-paste the following:

#!/bin/bash
# elimina settimanalmente /var/named/data/named.run perché bind 9.3.6 non
# prevede opzione "size = Xm" dentro named.conf, sezione "logging".
/etc/init.d/named stop
rm -f /var/named/data/named.run
/etc/init.d/named start

SRC:

http://www.zytrax.com/books/dns/ch7/logging.html

Senior Professional Network and Computer Systems Engineer during work hours and father when home.

Andrea strives to deliver outstanding customer service and heaps of love towards his family.

In this Ad-sponsored space, Andrea shares his quest for "ultimate" IT knowledge, meticulously brought to you in an easy to read format.

Rate this post