[Dnsmasq-discuss] Possible lease matching/reuse bug

Jerome Vuarand jerome.vuarand at gmail.com
Fri Sep 11 17:05:46 BST 2020


On Fri, 11 Sep 2020 at 07:00, Geert Stappers <stappers at stappers.nl> wrote:
> On Fri, Sep 11, 2020 at 03:12:34AM +0100, Jerome Vuarand wrote:
> > On Wed, 9 Sep 2020 at 17:36, Geert Stappers <stappers at stappers.nl> wrote:
> > > > 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
> >
> > These don't work at all, it gives the following log on first connection:
> >
> > dnsmasq-dhcp[583]: DHCPDISCOVER(ap0) b8:27:eb:a6:d4:d6
> > dnsmasq-dhcp[583]: DHCPOFFER(ap0) 192.168.4.200 b8:27:eb:a6:d4:d6
> > dnsmasq-dhcp[583]: DHCPREQUEST(ap0) 192.168.4.200 b8:27:eb:a6:d4:d6
> > dnsmasq-dhcp[583]: DHCPACK(ap0) 192.168.4.200 b8:27:eb:a6:d4:d6 target
>
> I think "existing leases"
> but that doesn't match the reported "on first connection"

The file indicated in dhcp-leasefile is empty whenever I start a test.



More information about the Dnsmasq-discuss mailing list