Fixing BIND's journal out of sync with zone error.

If a zone (or zones) in your BIND setup gets out of sync (almost undoubtedly caused by manual editing a zone):

 

zone utternerd.org/IN: journal rollforward failed: journal out of sync with zone

zone utternerd.org/IN: not loaded due to errors.

Fixing it is rather simple, simply delete the offending zone journal which is easily identified by the "zonename.jnl":

# rm /var/cache/bind/zones/bursoft.com.tr.jnl

Now simply restart BIND as you usually would (YMMV):

# service bind9 restart

 

In the future if you need to update a dynamic zone, freeze, modify, and thaw them manually:

 

# rndc freeze bursoft.com.tr

# vi /var/cache/bind/zones/bursoft.com.tr (make manual changes needed)
# rndc thaw bursoft.com.tr

Thawing the zone will force BIND to reload it.