OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: Colonel Sheppard on May 20, 2025, 07:48:51 PM

Title: DNSmasq host reservation without fixed IP
Post by: Colonel Sheppard on May 20, 2025, 07:48:51 PM
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?
Title: Re: DNSmasq host reservation without fixed IP
Post by: meyergru on May 20, 2025, 08:39:38 PM
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.
Title: Re: DNSmasq host reservation without fixed IP
Post by: Colonel Sheppard on May 20, 2025, 11:49:22 PM
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