DNSmasq host reservation without fixed IP

Started by Colonel Sheppard, May 20, 2025, 07:48:51 PM

Previous topic - Next topic
My current setup using ISC for DHCP has several "reservations" that I've create where I assign a hostname based on a MAC address but do not assign it a fixed IP.
This allows for services like PiHole/AdGaurd, and other monitoring to keep track of the device(s) using the known hostname for devices that don't really need a fixed IP.

However when trying to add a host entry to DNSMasq for reservations, this works fine for devices that I give fixed IP addresses, but when trying to create an entry with just a Host and Hardware Address while letting it get an IP address from the DHCP pool, it won't let me create it: saying that "A value is required" for the IP address field.

Is there some way to make this work though the GUI that I'm not aware of?
I know DNSmasq is still pretty early on for OPNSense, only having been released recently. So I don't know if this will change in the future?

Seems like a GUI validation problem only, because the value is mandatory. The DNSmasq dhcp-host config entry can be created without an IP and should be put into DNS when the actual DHCP registration is done. Please create a Github issue on https://github.com/opnsense/core.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+

I suspected that might be the case.

I previously had a different system set up using DNSmasq with dhcp-hosts set up that way; using manually-edited config files where we were able to have hosts reserved/options set without specifying the IP.
But the other admins wouldn't SSH into the system to modify the reservation files, just wanting to do thing through a web GUI. So I got all the requests to add/make changes to the reservations. Thus would be nice to be able to do the same things though the web interface.

Will create GitHub issue