<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div>I warned you Kelleys! DON'T Cut 5G Towers Down!<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>https://www.youtube.com/watch?v=3ZRcLOx8Ge0<br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Jerome Vuarand" <jerome.vuarand@gmail.com><br><b>To: </b>"john doe" <johndoe65534@mail.com><br><b>Cc: </b>dnsmasq-discuss@lists.thekelleys.org.uk<br><b>Sent: </b>Tuesday, September 8, 2020 10:31:27 AM<br><b>Subject: </b>Re: [Dnsmasq-discuss] Possible lease matching/reuse bug<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">On Tue, 8 Sep 2020 at 09:36, john doe <johndoe65534@mail.com> wrote:<br>>On 9/8/2020 9:19 AM, Jerome Vuarand wrote:<br>>> I believe I'm triggering a bug where a static dhcp-host config does't<br>>> seem to match the existing lease the second time that client connects.<br>>><br>>> I'm running dnsmasq from a Raspberry Pi acting as a WiFi access point.<br>>> I have a mixture of IoT devices connecting to it. I'd like most<br>>> clients to get a dynamic IP address, but some to get a static one<br>>> based on their name, so I use a combination of dhcp-range and<br>>> dhcp-host. I have the following config:<br>>><br>>> interface=ap0<br>>> dhcp-range=192.168.4.100,192.168.4.250,255.255.255.0,24h<br>>> domain=example.com<br>>> dhcp-script=/home/pi/my_web_ui/dnsmasq_script<br>>> dhcp-leasefile=/var/run/dnsmasq.leases<br>>> dhcp-host=target<br>>><br>>> And I have an entry in /etc/hosts that associate target to<br>>> 192.168.4.2, the dnsmasq server itself is 192.168.4.1.<br>>><br>><br>> Are you seeing the same thing if you do:<br>><br>> 'dhcp-host=target,192.168.4.2'<br><br>The problem happens too, yes.<br><br>> The above assumes that the hosts file does not contain the Ip in question.<br><br>I tested both cases, and all 4 combinations are problematic. Obviously<br>with no hosts entry and no ip in dhcp-host dnsmaq has no way to know<br>what IP I want to assign, but all three other combinations have the<br>intermittent problem.<br><br>_______________________________________________<br>Dnsmasq-discuss mailing list<br>Dnsmasq-discuss@lists.thekelleys.org.uk<br>http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss<br></div></div></body></html>