You get a bonus - 1 coin for daily activity. Now you have 1 coin

Error: journal rollforward failed: journal out of sync with zone XYZ

Practice



Situation: The DNS server (Bind/Named) refuses to load and work with a DNS zone, and error messages of the following kind appear in the logs:

journal rollforward failed: journal out of sync with zone XYZ



The error occurs when the DNS server (i.e., the bind daemon) updates the zone automatically, while the system administrator has also manually changed the zone. And named (bind) starts complaining that the zone and its journal file have somehow become out of sync.


Solution

This is solved quite simply as follows,

Stop the service.

Go into the directory where the settings file for this zone is located, and next to it you'll see a file with the same name but with a jnl extension

Simply delete the journal of the problem zone, which is easily identified by "zonename.jnl":
# rm /var/cache/bind/zones/uterd.org.jnl

Now simply restart BIND, as usual. So we delete it and restart bind. That's all.:

# service bind9 restart
In the future, if you need to update a dynamic zone, freeze it, change it, and thaw it manually:
# rndc freeze utternerd.org
# vi /var/cache/bind/zones/utrd.org (changes need to be made manually)
# rndc thaw utterrd.org

Thawing the zone will force BIND to reload it.

Also check whether reverse zones have been added

Applies to: Bind/Named

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)