[Dnsmasq-discuss] Possible lease matching/reuse bug

Geert Stappers stappers at stappers.nl
Wed Sep 9 17:24:59 BST 2020


On Wed, Sep 09, 2020 at 12:32:37PM +0100, Jerome Vuarand wrote:
> On Tue, 8 Sep 2020 at 12:59, Geert Stappers <stappers at stappers.nl> wrote:
> >>>> dhcp-host=target
> >
> >>> 'dhcp-host=target,192.168.4.2'
> >
> > ???
> >
> > Manual page snippet from http://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
> >
> >  --dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][tag:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]
> >    text ... allocated the same hostname, IP address ... more text ...
> 
> All sections are optional in that line.

Yes, for a valid syntax.
('valid syntax' meaning "no syntax error")


> I provided the hostname and hostname+ipaddr in the two examples above.
>
> > It says provide server side with information how to identify client side
> > so it can do the wanted assignment
> 
> The client sends its hostname "target" which seems to be enough to
> identify it and give it the associated ipaddr (either from
> dnsmasq.conf or from /etc/hosts).

So it seems you either want
  dhcp-host=id:target,192.168.4.2
or
  dhcp-host=id:target,target


> The problem happens when that same client connects a second time.

The reason we have this email thread.

Please pursuit the problem further
and pretty please report back how it is going.


Groeten
Geert Stappers
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list