[Dnsmasq-discuss] client name via DHCP
Simon Kelley
simon at thekelleys.org.uk
Fri Feb 11 16:16:33 GMT 2011
Carlos Carvalho wrote:
> Helmut Hullen (Hullen at t-online.de) wrote on 11 February 2011 11:23:
> >>>>>>> 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?
> [...]
> >I'd be pleased if/when "dnsmasq" tells the client's hostname at least in
> >one of its log messages.
>
> It does for me, with log-dhcp set:
>
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 DHCPDISCOVER(eth0.114) ...
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 DHCPOFFER(eth0.114) ...
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 requested options: 1:netmask, 15:domain-name, 3:router, 6:dns-server,
> ...
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 tags: ...
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 next server: ...
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 broadcast response
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 sent size: 1 option: 53:message-type 02
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 sent size: 4 option: 54:...
> Feb 11 08:36:56 dnsmasq-dhcp[897]: 2634092356 sent size: 4 option: 51:...
> ...
> Feb 11 08:36:59 dnsmasq-dhcp[897]: 2634092356 client provides name: XXX
> *************************
I had completely forgotten that! Another good solution.
Simon.
More information about the Dnsmasq-discuss
mailing list