Hosts imported into Dnsmasq not seen as reservations

Started by nray, December 20, 2025, 09:48:46 PM

Previous topic - Next topic
I set up Dnsmasq a month ago and used the "Import csv" feature to set up most of the host reservations. The DHCP lease reservations function as expected, except the Dnsmasq user interface doesn't recognize the lease type as "static" as it should and thinks they are "dynamic".

That means that on the Leases page, next to each of those hosts imported from the csv, instead of the magnifying glass "Find Reservation" there is the + "Add Reservation", even though there is a functioning reservation. Hosts I have set up individually using the "Add" button do not have this issue.

Is this a known issue, and is there a fix?

I think this might be a case sensitivity issue causing the functionally static reservations to not be recognized as such. Specifically:

- My imported reservations have MAC addresses with uppercase letters. The leases page shows MAC addresses only with lowercase letters in the MAC, even for the reservations with uppercase letters in the MAC.
- If I click the "Add Reservation" + button on the leases page to try and create a reservation for a lease with uppercase letters in the MAC address, it complains that "'[ip address]' is already used in another DHCP host entry." This indicates that it doesn't recognize the MAC address as being the same due to case differences and only sees a collision of the IP.
- If I go to my Hosts page and edit a host reservation which has uppercase letters in the MAC and replace it with the same MAC but with lowercase letters, hit Apply and go back to the leases page, then the lease instantly changes from "dynamic" to "static" (even though it was technically static before) and the "Add reservation" button changes to the "Find reservation".

So either there needs to be case insensitivity added to how MAC addresses are handled in the GUI, or there needs to be a conversion process added somewhere to the section where DHCP reservations are added/imported to Hosts that makes all the letters in MAC addresses lowercase.