'

BIND 9.3.6: lame trick to prevent named.run to grow to 1GB.

January 18th, 2014 by Andrea Matesi 2847 Views

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

Posted in dirty hacks | Comments Off on BIND 9.3.6: lame trick to prevent named.run to grow to 1GB.

Comments are closed.