Categories: DNSLinux

BIND journal out of sync with zone

Ran into a zone conflict today and had to dust off more BIND knowledge. This occurred after I added a host to a zone which was enabled for dynamic updates for DHCP clients. Getting dynamic updates to work in conjunction with ISC DHCP requires a long rant of its own. Since there are no errors written to the console while you start the daemon, I find it always fun to watch your syslog.

$ tail -f -n 300 /var/log/syslog
 zone journal rollforward failed: journal out of sync with zone
 zone not loaded due to errors.
 all zones loaded
 #stop the service gracefully
 $ systemctl stop bind9.service
 #delete the .jnl file
 $ rm /var/lib/bind/
 #start BIND again
 $ systemctl start bind9.service
 #confirm the zone loaded while watching output from tail
 zone loaded serial 423

If you have dynamic zones it is best to “freeze” them first before editing and “thaw” them after to avoid this problem in the first place. The commands for this are:

$ rndc freeze
 #edit zonefile
 $ rndc reload
 #reload it
 $ rndc thaw
 #resume processing the zone with thaw

When BIND has a conflict while loading the zone, all you need to do is simply delete the zone file that will have the extension “.jnl”.  This will be where ever your zone files are located. They are typically in /var/lib/bind or /etc/bind/zones. One of these days I’ll compile a master page instead of a post about all of my trouble working with BIND.

Disqus Comments Loading...

Recent Posts

FreeNAS Error Creating Pool

command '('gpart', 'create', '-s', 'gpt', '/dev/da8')' returned non-zero exit status 1. If you get this error while trying to create… Read More

June 7, 2019 3:44 pm

Change Grub Default Boot Entry on Linux Mint

I'm dual booting Windows and Linux Mint on my laptop. The grub default is to boot into Linux Mint, however… Read More

April 23, 2019 7:45 pm

How to Reset Secure Channel On Active Directory Domain Controller

When you're a little too careless about virtualizing your domain controllers, cloning, migrating, backing up and restoring, returning from vacation… Read More

April 21, 2019 8:14 am

Run Systemd Script Before System Shutdown

I tried to retain the NGINX FastCGI cache and have it persist across system reboots instead of being ephemeral by… Read More

April 20, 2019 10:14 am

Learn Systemctl Usage to Manage Systemd Service in Linux

Systemd is new service manager for Linux. It's a replacement for all previous init systems (SysV/SysVinit & Ubuntu's Upstart) and… Read More

April 20, 2019 7:55 am

Force Delete Windows Server DHCP Failover Relationship

If you've found yourself here then chances are you messed up one of your domain controllers or at least one… Read More

April 20, 2019 5:54 am