You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use NSD as a secondary name server on Ubuntu. When NSD is asked to write a zone into the zonefile, for example using sudo nsd-control write example.com, journalctl shows the error in the title of this issue:
cannot write zone example.com file example.com.zone.signed~: Permission denied
This is the content of /etc/systemd/system/nsd.service, that is the default Ubuntu systemd file:
The config snippet seems to be missing the 'zonefile' setting. That seems to be important. From the error it would seem that the directory of the zonefile setting is not writable by the server. The ReadWritePaths setting from systemd maybe does not include that directory. Perhaps the directory can be added to the list to writable paths.
The zonefile should be located in /etc/nsd. So, I tried adding: zonefile: /etc/nsd/example.com.zone.signed in the zone section, but the error persists.
Perhaps the server runs under another username, like nsd, sometimes compiled by default. And that username does not have read and write permissions on the /etc/nsd directory? Depends on the owner and permissions of the directory. To make the new temporary file, the file with ~ at the end, it needs write permission on the directory itself, not just read and write permission on the old zonefile.
I use NSD as a secondary name server on Ubuntu. When NSD is asked to write a zone into the zonefile, for example using
sudo nsd-control write example.com
, journalctl shows the error in the title of this issue:This is the content of
/etc/systemd/system/nsd.service
, that is the default Ubuntu systemd file:This is the content of my
/etc/nsd/nsd.conf
:I replaced my real zone name with
example.com
everywhere.The text was updated successfully, but these errors were encountered: