[nsd-users] error: cannot write zone : Permission denied

Anand Buddhdev anandb at ripe.net
Fri Jan 12 14:33:23 UTC 2024


On 12/01/2024 14:46, Roman Serbski via nsd-users wrote:

Hi Roman,

You have a config problem. See below.

> server:
>          ip-address: 192.168.2.1
>          do-ip4: yes
>          do-ip6: no
>          verbosity: 2
>          chroot: "/usr/local/etc/nsd"
>          zonesdir: "/usr/local/etc/nsd"

This "zonesdir" is where NSD wants to write plain text zone files, but 
it is not writable by the "nsd" user. You should change this to 
/usr/local/etc/nsd/var, which appears to be writable by "nsd".

>          zonelistfile: "zone.list"
>          database: "var/db/nsd/nsd.db"

The "database" option is silently ignored. NSD 4.8.0 has dropped the 
database features altogether, and it only saves zone data to plain text 
files.

Regards,
Anand


More information about the nsd-users mailing list