<div dir="ltr">I'm having trouble getting anything out of dnstap with unbound <font face="menlo"><span style="font-size:11px">1.5.10 on FreeBSD 11-STABLE with dustup gocode freshly installed.</span></font><div><font face="menlo"><span style="font-size:11px"><br></span></font></div><div><font face="menlo"><span style="font-size:11px">I've run the fstrm 0.2.0 unit tests on this box to verify that reading/writing to the unix domain sockets is working properly (has anyone evaluated GRPC rather than fstrm now that google has released a transport for protocol buffers?)</span></font></div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span>The dnstap section of my unbound.conf is:</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">dnstap:</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">  dnstap-enable: yes</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">  dnstap-socket-path: "/var/run/unbound/dnstap.sock"</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">  dnstap-send-identity: yes<br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">  dnstap-send-version: yes</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">  dnstap-log-resolver-response-messages: yes</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">  dnstap-log-client-query-messages: yes</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px">I'm running unbound in a chroot, but I can't find the socket either in or out of the chroot :</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">server:</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">  directory: /usr/local/etc/unbound</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px">  chroot: /usr/local/etc/unbound<br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px">First I run two dustup listeners (as I'm not sure if its supposed to be inside the chroot or not):</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">dnstap -u /var/run/unbound/dnstap.sock -w /root/dnstap.1</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">dnstap -u /usr/local/etc/unbound/var/run/unbound/dnstap.sock -w /root/dnstap.2</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Then I start unbound:</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"># sh /usr/local/etc/rc.d/unbound start</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Obtaining a trust anchor:.</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Starting unbound.</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">[1477374748] unbound[10467:0] debug: creating udp4 socket 0.0.0.0 53</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">[1477374748] unbound[10467:0] debug: creating tcp4 socket 0.0.0.0 53</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">




</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">[1477374748] unbound[10467:0] debug: switching log to syslog</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">unbound works fine, but I am not seeing anything written out to my /root/dnstap files.</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">I spent a little time playing around with ktrace and dtrace but I haven't yet really figured out what is going on or why it is not writing out logs.</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">Any pointers for debugging why messages don't seem to be getting sent to the domain socket?  Thanks,</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">       - Murray</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><br></p></div></div>