[Dnsmasq-discuss] How can I get dnsmasq to ignore a client's request for an IP it received on an earlier lease?

bad.cow5843 at fastmail.com bad.cow5843 at fastmail.com
Sun Apr 20 11:30:21 UTC 2025


For the record: I changed the order back to list the host after the range, restarted dnsmasq and it worked this time. I don't know why this happened, sorry!

I now have this in the configuration file:

# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=192.168.2.50,192.168.2.150,12h

# ...

# Always allocate the host with Ethernet address 00:e0:4c:36:07:25
# The IP address 192.168.2.4
dhcp-host=00:e0:4c:36:07:25,192.168.2.4

and I saw this in the logs

Apr 20 12:11:29 pizero systemd[1]: Stopped dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server.
Apr 20 12:11:29 pizero systemd[1]: dnsmasq.service: Consumed 1.501s CPU time.
Apr 20 12:11:37 pizero systemd[1]: Starting dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server...
Apr 20 12:11:37 pizero dnsmasq[11557]: started, version 2.90 cachesize 150
Apr 20 12:11:37 pizero dnsmasq[11557]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC loop-detect inotify dumpfile
Apr 20 12:11:37 pizero dnsmasq-dhcp[11557]: DHCP, IP range 192.168.2.50 -- 192.168.2.150, lease time 12h
Apr 20 12:11:37 pizero dnsmasq[11557]: using only locally-known addresses for localnet
Apr 20 12:11:37 pizero dnsmasq[11557]: no servers found in /etc/resolv.conf, will retry
Apr 20 12:11:37 pizero dnsmasq[11557]: read /etc/hosts - 9 names
Apr 20 12:11:37 pizero systemd[1]: Started dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server.
Apr 20 12:12:33 pizero dnsmasq-dhcp[11557]: DHCPREQUEST(eth0) 192.168.2.58 00:e0:4c:36:07:25
Apr 20 12:12:33 pizero dnsmasq-dhcp[11557]: DHCPNAK(eth0) 192.168.2.58 00:e0:4c:36:07:25 static lease available
Apr 20 12:12:33 pizero dnsmasq-dhcp[11557]: DHCPDISCOVER(eth0) 192.168.2.58 00:e0:4c:36:07:25
Apr 20 12:12:33 pizero dnsmasq-dhcp[11557]: DHCPOFFER(eth0) 192.168.2.4 00:e0:4c:36:07:25
Apr 20 12:12:33 pizero dnsmasq-dhcp[11557]: DHCPREQUEST(eth0) 192.168.2.4 00:e0:4c:36:07:25
Apr 20 12:12:33 pizero dnsmasq-dhcp[11557]: DHCPACK(eth0) 192.168.2.4 00:e0:4c:36:07:25 pizero1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20250420/3d487f69/attachment.htm>


More information about the Dnsmasq-discuss mailing list