Add support for static dhcp defs in /etc/init.d/dnsmasq?
|Reported by:||anonymous||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
|Keywords:||dnsmasq dhcp static||Cc:|
dnsmasq supports the use of a file to contain static dhcp host definitions which can be re-read after changes by signalling dnsmasq with SIGHUP rather than restarting dnsmasq and losing all data on current dhcp leases, etc. Currently, this is not supported in /etc/config/dhcp and /etc/init.d/dnsmasq. With the use of the following patch to /etc/init.d/dnsmasq, this can be implemented with the attached patch. Then it is a simple matter to add an entry like:
option 'dhcphostsfile' '/etc/static_dhcp_hosts'
to the "config 'dnsmasq'" section in /etc/config/dhcp and putting the proper data in /etc/static_dhcp_hosts (or whatever name you care to give it).
Any chance of this being incorporated in the future?