Categories: DNS Linux

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 sub.domain.com/IN: journal rollforward failed: journal out of sync with zone
 zone sub.domain.com/IN: not loaded due to errors.
 all zones loaded
 running
 #stop the service gracefully
 $ systemctl stop bind9.service
 #delete the .jnl file
 $ rm /var/lib/bind/sub.domain.com.jnl
 #start BIND again
 $ systemctl start bind9.service
 #confirm the zone loaded while watching output from tail
 zone sub.domain.com/IN: 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 sub.domain.com
 #edit sub.domain.com zonefile
 $ rndc reload sub.domain.com
 #reload it
 $ rndc thaw sub.domain.com
 #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.

Share
Disqus Comments Loading...

Recent Posts

VMWare vSphere 6.7 ESXTOP Output Garbled

If your VMWare vSphere 6.x environment command output of esxtop looks like a bunch of garbled gibberish (it's actually CSV… Read More

February 28, 2019 7:39 pm 19:39

How To Run RoboCopy Backup in Parallel

From time to time Windows Admins will surprise you with band-aid and bubble gum scripts, that's entirely expected I think.… Read More

February 28, 2019 12:20 pm 12:20

Windows 10 GodMode - The Ultimate Administrator Shortcut

Have you ever wondered what life might be like if the Windows 10 OS somehow had a single folder that… Read More

February 28, 2019 7:58 am 07:58

Samsung Galaxy S9 G960/G965 Stock ROM Firmware Download

There could be any number of reasons for needing to flash manufacturer stock OEM firmware on a Samsung Galaxy S9… Read More

January 24, 2019 7:42 am 07:42

Output IP Address with ipconfig Findstr Ethernet Adapter

How many times have you entered  ipconfig /all at the command line to return a single IP address, then have to strain… Read More

January 20, 2019 12:39 am 00:39

AWS SES Assistance in Enterprise Market - A Must Read

Designing e-mail solutions on a large scale can be a complex and costly challenge for a business: you need to… Read More

December 25, 2018 4:01 pm 16:01