<br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 12:17 PM, Helmut Hullen <span dir="ltr"><<a href="mailto:Hullen@t-online.de">Hullen@t-online.de</a>></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>
>> when I use the ISC DHCP, then I can see the name of the Windows<br>
>> client in "/var/state/dhcp/dhcp.leases".<br>
>><br>
>> With dnsmasq as DNS and DHCP server I haven't found this feature -<br>
>> is it somewhere hidden?<br>
<br>
</div><div class="im">> near the bottom of the dnsmasq man page you will find the following<br>
> section:<br>
<br>
> FILES*/etc/dnsmasq.conf*<br>
<br>
> */usr/local/etc/dnsmasq.conf*<br>
<br>
> */etc/resolv.conf*<br>
<br>
> */etc/hosts*<br>
<br>
> */etc/ethers*<br>
<br>
> */var/lib/misc/dnsmasq.leases*<br>
<br>
> */var/db/dnsmasq.leases*<br>
<br>
</div>> */var/run/dnsmasq.pid*<br>
<br>
Thank you!<br>
<br>
And into which of these files does dnsmasq write the client'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're using the leasefile-ro option, then getting this information is dependent on your script saving it somewhere. If the client doesn't send a hostname, the hostname column will have "*" 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't yet found any such name in any of these files, and I haven'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>