[nsd-users] Nothing in nsd tap capture

Bac Nguyen Huy huybac.nguyen at gmail.com
Thu Jun 25 09:12:22 UTC 2020


Thank Peter Andreev
My problem have been solved.
My nsd is running by nsd user.
So, i've to start fstrm_capture by nsd user.
make direcorty, then chown nsd:nsd, then:

sudo -u nsd  fstrm_capture -t protobuf:dnstap.Dnstap -u
/var/run/nsd/dnstap.sock -w /var/run/nsd/log.dnstap


On Wed, Jun 24, 2020 at 11:58 PM Peter Andreev <andreev.peter at gmail.com>
wrote:

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

-- 
_____________________________________
Mr Nguyen Huy Bac
Đài DNS (VNNIC)
Tel: 04.35564944
Email: huybac.nguyen at gmail.com
Số TK: 13320037822012
Ngân hàng: Techcombank Chi nhánh Đông Đô – Hà Nội.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20200625/592edfbe/attachment.htm>


More information about the nsd-users mailing list