I have configured BIND and ISC DHCPD to work together (using keys for updates). Now it's not that it does not work at all: forward maps etc are most often added.
However, very often, for no apparent reason the .jnl file (journal) for the zone is left there and the main zone file is not updated. This results in infuriating lack of resolution of some hosts after DHCP lease acquire (if the hosts was not there in the zone file in the first place, or it leads to the old address).
Permissions look like this:
-rw-r--r-- 1 bind bind 691 Dec 10 11:06 myzone.zone
-rw-r--r-- 1 bind bind 765 Dec 10 12:17 myzone.zone.jnl
It should not be permissions problem though since the zone does (often) get updated via DHCP/DDNS?
What is the source of this problem and a fix for it?
OS: debian 7.2 x64, stable release bind and isc-dhcp server.
With bind 9.9, "rndc sync" is not enough; you also need the "-clean" flag:
I've looked at this before.
Restarting
named
will flush updated data from.jnl
files back to the zone file, but there's also another way..rndc freeze <zone>
but this will disable DDNS, so it should be followed with arndc thaw <zone>
to re-enable it, and should clear up the.jnl
files.There's apparently a
rndc sync
in Bind 9.9.