[nsd-users] logging error on /etc/nsd/nsd.log

Mukul Shukla mukulmanet at gmail.com
Sat Jun 18 16:32:56 UTC 2022


Dear Andreas

Thanks for the reply

I want to log to a separate log file, very handy for setting up of NSD
replication, STDOUT is not a viable option.
Logging to /run (which exists in Debian Testing), is a viable option. For
that matter, any other folder like /etc/nsd itself.
I would better change the distribution, if no proper solution could be
found out.

Thanks.

Mukul

On Sat, Jun 18, 2022 at 9:17 PM A. Schulze via nsd-users <
nsd-users at lists.nlnetlabs.nl> wrote:

>
> Am 18.06.22 um 17:21 schrieb Mukul Shukla via nsd-users:
> > Dear All,
> >
> > I have recently shifted my Authoritative DNS server from very old
> TinyDNS to NSD. Presently it is in a very primitive stage, but  working
> absolutely fine.
> >
> > I have installed NSD on Debian Testing because I could find a relatively
> newer version of NSD on Debian Testing. I am running the NSD version 4.5.0.
> I am enabling the NSD logging  to /var/log/nsd.log. When I check the status
> of the NSD demon by "systemctl status nsd", I get the following error
> message.
> >
> > Jun 18 20:39:02 ns1 systemd[1]: Starting Name Server Daemon...
> > Jun 18 20:39:02 ns1 nsd[1884]: [2022-06-18 20:39:02.460] nsd[1884]:
> error: Cannot open /var/log/nsd.log for appending (Permission denied),
> logging to stderr
> > Jun 18 20:39:02 ns1 nsd[1884]: [2022-06-18 20:39:02.460] nsd[1884]:
> warning: chown /var/log/nsd.log failed: Read-only file system
> > Jun 18 20:39:02 ns1 nsd[1884]: [2022-06-18 20:39:02.460] nsd[1884]:
> notice: nsd starting (NSD 4.5.0)
> > Jun 18 20:39:02 ns1 nsd[1885]: [2022-06-18 20:39:02.607] nsd[1885]:
> notice: nsd started (NSD 4.5.0), pid 1884
> > Jun 18 20:39:02 ns1 systemd[1]: Started Name Server Daemon.
>
>
> Hello,
>
> I assume a fault in the systemd unit file.
> see https://sources.debian.org/src/nsd/4.5.0-1/debian/nsd.service/#L22
> Maybe /var/log is missing there.
>
> You may try to let NSD log to /run ( which may not be /run on your system )
>
> Or you try to start NSD without systemd: /usr/sbin/nsd -d -c
> /path/to/nsd.conf
> and make sure, no logfile is set so NSD log to STDOUT
>
> Andreas
> _______________________________________________
> nsd-users mailing list
> nsd-users at lists.nlnetlabs.nl
> https://lists.nlnetlabs.nl/mailman/listinfo/nsd-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20220618/c20b7cd2/attachment.htm>


More information about the nsd-users mailing list