Contents

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 denied

My 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.

  1. Stop the service:

    service named stop
  2. Move the zone from /var/named/example.com to /var/named/data/example.com.

  3. Point named.conf at the new location with a relative path:

    file "data/example.com";
  4. Start the service again:

    service named start

The transfer worked after that. Original thread: https://www.centos.org/forums/viewtopic.php?t=5543