bind9 failing to create jnl: netsh.xyz.zone.jnl: create: permission denied
Contents
While testing bind9 replication and the notify / ixfr / axfr machinery, I ran rndc reload zone on the secondary and captured traffic — no notify or ixfr packets at all. The named.run log explained why:
netsh.xyz.zone.jnl: create: permission deniedMy first guess was file permissions or SELinux; neither turned out to be the cause. A search led to a thread on centos.org, where the fix is to move the zone files into named’s data directory and reference them with a relative path in named.conf.
-
Stop the service:
service named stop -
Move the zone from
/var/named/example.comto/var/named/data/example.com. -
Point
named.confat the new location with a relative path:file "data/example.com"; -
Start the service again:
service named start
The transfer worked after that. Original thread: https://www.centos.org/forums/viewtopic.php?t=5543