[CentOS] BIND (named) as secondary and .jnl files

Sun Aug 28 18:03:57 UTC 2016
Anand Buddhdev <anandb at ripe.net>

On 28/08/16 19:42, Walter H. wrote:

Hi Walter,

> I have two running BINDs in my LAN, one on my router box and one as VM;
> both are caching DNS servers, and a few zones are on both, on the box as
> master and on the VM as slave,
> but how can I cleanup/flush the growing .jnl files;

By default, BIND places no limit on journal files, so they keep growing.
To limit their size, add this to the "options" section of the configuration:

max-journal-size 10m;

You will probably need to flush the zones, stop BIND, remove the large
journals, and then start BIND again.