<div dir="ltr"><div>Thank Peter Andreev</div><div>My problem have been solved.<br></div><div>My nsd is running by nsd user.</div><div>So, i've to start fstrm_capture by nsd user.</div><div>make direcorty, then chown nsd:nsd, then:<br></div><div>
<pre>sudo -u nsd  fstrm_capture -t protobuf:dnstap.Dnstap -u /var/run/nsd/dnstap.sock -w /var/run/nsd/log.dnstap
</pre>

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 24, 2020 at 11:58 PM Peter Andreev <<a href="mailto:andreev.peter@gmail.com">andreev.peter@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I've got a similar problem and solved it by changing socket ownership.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 24 июн. 2020 г. в 17:24, Bac Nguyen Huy via nsd-users <<a href="mailto:nsd-users@lists.nlnetlabs.nl" target="_blank">nsd-users@lists.nlnetlabs.nl</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear<br>I'm Bac, Nguyen Huy<br>I'm trying DNSTap on NSD but nothing in my captured.<br>Please help me!<br><br>###########################<br>I've <br>- installed nsd enable-dnstap, NSD version 4.2.4 on centos 7<br>- edit nsd.conf to enable dnstap<br><i><br># DNSTAP config section, if compiled with that<br>dnstap:<br> # set this to yes and set one or more of dnstap-log-..-messages to yes.<br>        dnstap-enable: yes<br>    dnstap-socket-path: "/var/run/dnstap.sock"<br>  dnstap-send-identity: yes<br>     dnstap-send-version: yes<br>      dnstap-identity: ""<br>         dnstap-version: ""<br>  dnstap-log-auth-query-messages: yes<br>   dnstap-log-auth-response-messages: yes</i><br><br><br>- Install fstrm_capture<br>- Install dnstap-read<br><br>Then<br><i>- fstrm_capture -t protobuf:dnstap.Dnstap -u /var/run/dnstap.sock -w /var/run/dnstap.logfile</i><br>- start nsd: /usr/local/sbin/nsd -c /etc/nsd/nsd.conf <br>- dig @ my nsd server to test.<br>- ctrl c to stop fstrm_capture<br>But: Nothing in my captured<br><br><i>[root@nsd02slave run]# fstrm_capture -t protobuf:dnstap.Dnstap -u /var/run/dnstap.sock -w /var/run/dnstap.logfile<br>fstrm_capture: listening on socket path /var/run/dnstap.sock<br>fstrm_capture: opened output file /var/run/dnstap.logfile<br>^Cfstrm_capture: shutting down<br>fstrm_capture: closed output file /var/run/dnstap.logfile (wrote 2 frames, 54 bytes)</i><br><br>Nothing in my file<br><i>[root@nsd02slave ~]# dnstap-read -p /var/run/dnstap.logfile <br>[root@nsd02slave ~]# <br></i><br><i>[root@nsd02slave ~]# ls -l /var/run/<br>..........<br>-rw-r--r--.  1 root           root             54 Jun 24 21:04 dnstap.logfile<br>srwxr-xr-x.  1 root           root              0 Jun 24 20:46 dnstap.sock<br><br>[root@nsd02slave ~]# nsd -v<br>NSD version 4.2.4</i><br><br>##############################<br><br clear="all"><br>-- <br><div dir="ltr">_____________________________________<br>Mr Nguyen Huy Bac<br>Đài DNS (VNNIC)<br>Tel: 04.35564944<br>Email: <a href="mailto:huybac.nguyen@gmail.com" target="_blank">huybac.nguyen@gmail.com</a><br>Số TK: 13320037822012<br>Ngân hàng: Techcombank Chi nhánh Đông Đô – Hà Nội.</div></div>
_______________________________________________<br>
nsd-users mailing list<br>
<a href="mailto:nsd-users@lists.nlnetlabs.nl" target="_blank">nsd-users@lists.nlnetlabs.nl</a><br>
<a href="https://lists.nlnetlabs.nl/mailman/listinfo/nsd-users" rel="noreferrer" target="_blank">https://lists.nlnetlabs.nl/mailman/listinfo/nsd-users</a><br>
</blockquote></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Is there any problem Exterminatus cannot solve? I have not found one yet.<br><br></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">_____________________________________<br>Mr Nguyen Huy Bac<br>Đài DNS (VNNIC)<br>Tel: 04.35564944<br>Email: <a href="mailto:huybac.nguyen@gmail.com" target="_blank">huybac.nguyen@gmail.com</a><br>Số TK: 13320037822012<br>Ngân hàng: Techcombank Chi nhánh Đông Đô – Hà Nội.</div>