<br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 12:17 PM, Helmut Hullen <span dir="ltr">&lt;<a href="mailto:Hullen@t-online.de">Hullen@t-online.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hallo, Richard,<br>
<br>
Du meintest am 10.02.11:<br>
<div class="im"><br>
<br>
&gt;&gt; when I use the ISC DHCP, then I can see the name of the Windows<br>
&gt;&gt; client in &quot;/var/state/dhcp/dhcp.leases&quot;.<br>
&gt;&gt;<br>
&gt;&gt; With dnsmasq as DNS and DHCP server I haven&#39;t found this feature -<br>
&gt;&gt; is it somewhere hidden?<br>
<br>
</div><div class="im">&gt; near the bottom of the dnsmasq man page you will find the following<br>
&gt; section:<br>
<br>
&gt; FILES*/etc/dnsmasq.conf*<br>
<br>
&gt; */usr/local/etc/dnsmasq.conf*<br>
<br>
&gt; */etc/resolv.conf*<br>
<br>
&gt; */etc/hosts*<br>
<br>
&gt; */etc/ethers*<br>
<br>
&gt; */var/lib/misc/dnsmasq.leases*<br>
<br>
&gt; */var/db/dnsmasq.leases*<br>
<br>
</div>&gt; */var/run/dnsmasq.pid*<br>
<br>
Thank you!<br>
<br>
And into which of these files does dnsmasq write the client&#39;s name (the<br>
name the client presents when it asks for an IP adress)?<br></blockquote><div><br></div><div>The hostname is in the dnsmasq.leases file.  Exact directory depends on how you installed dnsmasq.  If you&#39;re using the leasefile-ro option, then getting this information is dependent on your script saving it somewhere.  If the client doesn&#39;t send a hostname, the hostname column will have &quot;*&quot; or the mac address.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I haven&#39;t yet found any such name in any of these files, and I haven&#39;t<br>
yet found an option or switch to make dnsmasq more verbose in this<br>
special case.<br>
<div><div></div><div class="h5"><br>
Viele Gruesse!<br>
Helmut<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</div></div></blockquote></div><br>