Hi, I've installed nsd from packages via epel-repository. When try to start service listening on port 65053 with: [root at ns1 nsd]# service nsd status Is does not work: # cat /var/log/messages | grep nsd Sep 6 11:28:35 ns1 nsd[1370]: nsd starting (NSD 4.1.24) Sep 6 11:28:35 ns1 nsd[1370]: can't bind udp socket: Permission denied Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: notice: nsd starting (NSD 4.1.24) Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: error: can't bind udp socket: Permission denied Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: error: server initialization failed, nsd could not be started Sep 6 11:28:35 ns1 nsd[1370]: server initialization failed, nsd could not be started Sep 6 11:28:35 ns1 systemd: nsd.service: main process exited, code=exited, status=1/FAILURE Sep 6 11:28:35 ns1 systemd: Unit nsd.service entered failed state. Sep 6 11:28:35 ns1 systemd: nsd.service failed. Looks like something wrong with user rights because nsd-control works: [root at ns1 nsd]# nsd-control start [2019-09-06 11:39:38.295] nsd[1414]: notice: nsd starting (NSD 4.1.24) [root at ns1 nsd]# ps aux | grep nsd nsd 1415 0.9 16.9 168776 84872 ? Ss 11:39 0:00 nsd -c /etc/nsd/nsd.conf nsd 1416 0.3 6.5 100304 32880 ? S 11:39 0:00 nsd -c /etc/nsd/nsd.conf nsd 1417 0.0 0.2 100436 1136 ? S 11:39 0:00 nsd -c /etc/nsd/nsd.conf This is only centos package issue or I should tweak nsd.conf somehow? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20190906/10a87e10/attachment.htm>
Resolved. Sorry for incorrect question. SELinux prevents NSD from starting. ________________________________ ??: nsd-users <nsd-users-bounces at NLnetLabs.nl> ?? ????? ???? ?????? <format_hub at outlook.com> ??????????: 6 ???????? 2019 ?. 11:43 ????: nsd-users at NLnetLabs.nl <nsd-users at NLnetLabs.nl> ????: [nsd-users] NSD failed to start via service on CentOS 7 Hi, I've installed nsd from packages via epel-repository. When try to start service listening on port 65053 with: [root at ns1 nsd]# service nsd status Is does not work: # cat /var/log/messages | grep nsd Sep 6 11:28:35 ns1 nsd[1370]: nsd starting (NSD 4.1.24) Sep 6 11:28:35 ns1 nsd[1370]: can't bind udp socket: Permission denied Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: notice: nsd starting (NSD 4.1.24) Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: error: can't bind udp socket: Permission denied Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: error: server initialization failed, nsd could not be started Sep 6 11:28:35 ns1 nsd[1370]: server initialization failed, nsd could not be started Sep 6 11:28:35 ns1 systemd: nsd.service: main process exited, code=exited, status=1/FAILURE Sep 6 11:28:35 ns1 systemd: Unit nsd.service entered failed state. Sep 6 11:28:35 ns1 systemd: nsd.service failed. Looks like something wrong with user rights because nsd-control works: [root at ns1 nsd]# nsd-control start [2019-09-06 11:39:38.295] nsd[1414]: notice: nsd starting (NSD 4.1.24) [root at ns1 nsd]# ps aux | grep nsd nsd 1415 0.9 16.9 168776 84872 ? Ss 11:39 0:00 nsd -c /etc/nsd/nsd.conf nsd 1416 0.3 6.5 100304 32880 ? S 11:39 0:00 nsd -c /etc/nsd/nsd.conf nsd 1417 0.0 0.2 100436 1136 ? S 11:39 0:00 nsd -c /etc/nsd/nsd.conf This is only centos package issue or I should tweak nsd.conf somehow? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20190906/2a206601/attachment.htm>
Anand Buddhdev
2019-Sep-06 08:59 UTC
[nsd-users] NSD failed to start via service on CentOS 7
On 06/09/2019 10:43, ???? ?????? wrote: Hi Yuri,> Hi, > I've installed nsd from packages via epel-repository. > > When try to start service listening on port 65053 with: > [root at ns1 nsd]# service nsd status > Is does not work:I haven't had time to download the EPEL package and check it. Can you please paste the output of "systemctl cat nsd" to show us how the systemd unit file is defined? Regards, Anand