<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Resolved.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sorry for incorrect question.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
SELinux prevents NSD from starting.<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>От:</b> nsd-users <nsd-users-bounces@NLnetLabs.nl> от имени Юрий Иванов <format_hub@outlook.com><br>
<b>Отправлено:</b> 6 сентября 2019 г. 11:43<br>
<b>Кому:</b> nsd-users@NLnetLabs.nl <nsd-users@NLnetLabs.nl><br>
<b>Тема:</b> [nsd-users] NSD failed to start via service on CentOS 7</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I've installed nsd from packages via epel-repository.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
When try to start service listening on port 65053 with:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
[root@ns1 nsd]# service nsd status</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Is does not work:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
# cat /var/log/messages | grep nsd<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>Sep 6 11:28:35 ns1 nsd[1370]: nsd starting (NSD 4.1.24)<br>
</span>
<div>Sep 6 11:28:35 ns1 nsd[1370]: can't bind udp socket: Permission denied<br>
</div>
<div>Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: notice: nsd starting (NSD 4.1.24)<br>
</div>
<div>Sep 6 11:28:35 ns1 nsd: [2019-09-06 11:28:35.314] nsd[1370]: error: can't bind udp socket: Permission denied<br>
</div>
<div>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<br>
</div>
<div>Sep 6 11:28:35 ns1 nsd[1370]: server initialization failed, nsd could not be started<br>
</div>
<div>Sep 6 11:28:35 ns1 systemd: nsd.service: main process exited, code=exited, status=1/FAILURE<br>
</div>
<div>Sep 6 11:28:35 ns1 systemd: Unit nsd.service entered failed state.<br>
</div>
<span>Sep 6 11:28:35 ns1 systemd: nsd.service failed.</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Looks like something wrong with user rights because nsd-control works:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>[root@ns1 nsd]# nsd-control start<br>
</span>
<div>[2019-09-06 11:39:38.295] nsd[1414]: notice: nsd starting (NSD 4.1.24)<br>
</div>
<div>[root@ns1 nsd]# ps aux | grep nsd<br>
</div>
<div>nsd 1415 0.9 16.9 168776 84872 ? Ss 11:39 0:00 nsd -c /etc/nsd/nsd.conf<br>
</div>
<div>nsd 1416 0.3 6.5 100304 32880 ? S 11:39 0:00 nsd -c /etc/nsd/nsd.conf<br>
</div>
<span>nsd 1417 0.0 0.2 100436 1136 ? S 11:39 0:00 nsd -c /etc/nsd/nsd.conf</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
This is only centos package issue or I should tweak nsd.conf somehow?</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks in advance.<br>
</div>
</div>
</body>
</html>