Hi,
I have a list of known hosts in [dhcp] -> hosts = [ ... ] that I give static IP addresses in one range while all unknown hosts get an IP address in a different range. This has been working well for years.
I recently changed the IP address of a known host in pihole.toml. Unfortunately, the DHCP server keeps giving it the old IP address it had before. I've not had time to look into this much so far but now one of the known hosts has been given an IP in the unknown hosts range and I cannot get it back on its assigned static IP address. Both the static IP assignment and the actual wrong IP assignment are visible on the DHCP server page in pihole, indicating this is not a matter of having to reload the pihole.toml file but an actual bug in pihole: it knows what the IP assignment rules are but is not applying them correctly.
IIRC machines can request that the DHCP server give them the same IP address they had before. I believe this may be what's happening here: these machines are asking for the wrong IP address and the DHCP server is given them what they asked for. Since their MAC addresses are associated with different IP address in pihole.toml, the DHCP server should refuse their request and assign them the IP addresses defined in the configuration. For some reason it is not doing that.
Can anybody help me find out why these machine are given the wrong IP address and fix it?
Cheers,