[Dnsmasq-discuss] client name via DHCP

richardvoigt at gmail.com richardvoigt at gmail.com
Thu Feb 10 18:52:36 GMT 2011


On Thu, Feb 10, 2011 at 12:17 PM, Helmut Hullen <Hullen at t-online.de> wrote:

> Hallo, Richard,
>
> Du meintest am 10.02.11:
>
>
> >> when I use the ISC DHCP, then I can see the name of the Windows
> >> client in "/var/state/dhcp/dhcp.leases".
> >>
> >> With dnsmasq as DNS and DHCP server I haven't found this feature -
> >> is it somewhere hidden?
>
> > near the bottom of the dnsmasq man page you will find the following
> > section:
>
> > FILES*/etc/dnsmasq.conf*
>
> > */usr/local/etc/dnsmasq.conf*
>
> > */etc/resolv.conf*
>
> > */etc/hosts*
>
> > */etc/ethers*
>
> > */var/lib/misc/dnsmasq.leases*
>
> > */var/db/dnsmasq.leases*
>
> > */var/run/dnsmasq.pid*
>
> Thank you!
>
> And into which of these files does dnsmasq write the client's name (the
> name the client presents when it asks for an IP adress)?
>

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.


>
> I haven't yet found any such name in any of these files, and I haven't
> yet found an option or switch to make dnsmasq more verbose in this
> special case.
>
> Viele Gruesse!
> Helmut
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20110210/6c5022b9/attachment.htm 


More information about the Dnsmasq-discuss mailing list