<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hey Michael and Simon,</p>
    <p>Thanks. I already have added a cache lookup myself using
      dnsmasq's cache_find_by_addr(). However, this is unsuitable for
      getting the host names of the forward servers or if you are not
      the DHCP server.</p>
    <p>How could I trigger a PTR request from within dnsmasq? This will
      add the host name to the cache where it will then be available
      afterwards. I already use some pthreads for things that should not
      block so I wouldn't mind to run the PTRs from therein, where it
      wouldn't be blocking anything.</p>
    <p>Best regards,<br>
      Dominik<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 05.02.2018 14:03, Michael Stiemke
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:005a01d39e81$a654a010$f2fde030$@com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 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]-->
      <div class="WordSection1">
        <p class="MsoNormal">I have modified cache.c to do this.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Output in the log now looks like this:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">query[A] v20.vortex-win.data.microsoft.com
          from 192.168.5.118 = cpu-video (dhcp)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">or<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">query[AAAA] download.opensuse.org from
          192.168.5.10 = emu-deve.xxxx.eu (static)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">If there is interest, I will post the
          changes.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">The modification just loops through the
          cache table and gets the names from there - local query
          originators only of course, these being either static or dhcp
          assigned, can be found in there.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"
          style="margin-bottom:12.0pt;text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-GB">best regards,<br>
            Michael Stiemke (<a href="mailto:ms@ansynova.com"
              moz-do-not-send="true">mailto:ms@ansynova.com</a>)<br>
            <br>
          </span><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></b></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>
</pre>
    </blockquote>
  </body>
</html>