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.
when you're a little too careless about virtualizing your domain controllers, cloning, migrating, backing up and restoring, returning from vacation… Read More
systemd is new service manager for linux. it's a replacement for all previous init systems (sysv/sysvinit & ubuntu's upstart) and… Read More