<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello guys,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m posting a message because I lost few hours to try to configure and use dnstap without positive success.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I compiled unbound with no issues.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I installed all the dependencies to perform the unbound compilation with dnstap option (protocol buffer, fstrm…)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I used the following configure command:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="color:#3D3D3D;border:none windowtext 1.0pt;padding:0cm">./configure --prefix=/etc/unbound/unbound-1.9.4 --enable-dnstap --with-pthreads</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">make<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">make install<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">Then I created the unbound user, because if I have well understoo</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif">d<span style="color:#3D3D3D">,
 unbound try to run the daemon automatically with this user.<o:p></o:p></span></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">My unbound.conf.options content:<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">remote-control:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  control-enable: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  control-interface: 0.0.0.0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  control-port: 8953<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">server:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  access-control: 0.0.0.0/0 allow<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  interface: 0.0.0.0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  hide-identity: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  hide-version: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  prefetch: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  rrset-roundrobin: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  minimal-responses: no<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  serve-expired: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  use-syslog: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">  logfile: "/var/log/unbound/unbound.log"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">dnstap:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-enable: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-socket-path: "/var/log/unbound/unbound-dnstap.sock"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-send-identity: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-send-version: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-log-client-query-messages: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-log-client-response-messages: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-log-forwarder-query-messages: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-log-forwarder-response-messages: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-log-resolver-query-messages: yes<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">    dnstap-log-resolver-response-messages: yes<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">Note that the /var/log/unbound folder has the good right with unbound user as owner and group.<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">Then, before to start the unbound service, I run the fstrm socket with the command below:<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">sudo -u unbound /usr/local/bin/fstrm_capture -t protobuf:dnstap.Dnstap -u /var/log/unbound/unbound-dnstap.sock -w /var/log/unbound/unbound.dnstap<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">fstrm_capture: opening Unix socket path /var/log/unbound/unbound-dnstap.sock<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">fstrm_capture: opened output file /var/log/unbound/unbound.dnstap<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">And seems OK when I check with netstat command:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">unix  2      [ ACC ]     STREAM     LISTENING     17808855 /var/log/unbound/unbound-<span style="color:#FF4040">dnstap</span>.sock<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D">Finally, when I start the unbound daemon, I have the warning related to dnstap socket below:<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline">
<span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0]
<b>warning: could not open dnstap-socket-path: /var/log/unbound/unbound-dnstap.sock, No such file or directory</b><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap identity field set to "ddnflxbuild001"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap version field set to "unbound 1.9.4"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap Message/RESOLVER_QUERY enabled<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap Message/RESOLVER_RESPONSE enabled<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap Message/CLIENT_QUERY enabled<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap Message/CLIENT_RESPONSE enabled<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap Message/FORWARDER_QUERY enabled<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] notice: dnstap Message/FORWARDER_RESPONSE enabled<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console",serif">Oct 11 18:25:51 ddnflxbuild001 unbound[70926]: [1570811151] unbound[70926:0] info: start of service (unbound 1.9.4).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D;mso-fareast-language:FR">I tried another folder like the same where unbound is installed. No more better result and
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;mso-fareast-language:FR">I have no more ideas…<span style="color:#3D3D3D"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D;mso-fareast-language:FR">Also, please note that I configured Bind with dnstap on the same machine and it works well.<o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#3D3D3D;mso-fareast-language:FR">Thanks a lot for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<p>=========================================================</p>

<p>Ce message et toutes les pieces jointes (ci-apres le "message")<br>
sont confidentiels et susceptibles de contenir des informations<br>
couvertes par le secret professionnel. Ce message est etabli<br>
a l'intention exclusive de ses destinataires. Toute utilisation<br>
ou diffusion non autorisee interdite.<br>
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE<br>
et ses filiales declinent toute responsabilite au titre de ce message<br>
s'il a ete altere, deforme falsifie.</p>

<p>=========================================================</p>

<p>This message and any attachments (the "message") are confidential,<br>
intended solely for the addresses, and may contain legally privileged<br>
information. Any unauthorized use or dissemination is prohibited.<br>
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any<br>
of its subsidiaries or affiliates shall be liable for the message<br>
if altered, changed or falsified.</p>

<p>=========================================================</p></body>
</html>