Opened 7 years ago

Closed 7 years ago

Last modified 2 years ago

#5079 closed enhancement (fixed)

Add support for static dhcp defs in /etc/init.d/dnsmasq?

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze 8.09
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?


Attachments (1)

static_dhcp.txt (438 bytes) - added by huffcslists@… 7 years ago.
proposed /etc/init.d/dnsmasq patch

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by huffcslists@…

proposed /etc/init.d/dnsmasq patch

comment:1 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

committed in r15747.

comment:2 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.