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

Rate this post