Quote:
Originally Posted by vortmax
I just can't reset the server every time a new mac is added.
|
The dhcp documentation is
very clear about this: you have to restart dhcpd whenever you change the config file.
But with "reset the server" do you mean that you want to
reboot the box? That won't be necessary. Just (depending on your distro)
Code:
/etc/init.d/dhcpd restart
It takes only a few seconds, no client is going to complain about that.
If you want to use a database to store your mac addresses, built a simple script which first writes the first part of the dhcpd.conf file, then retrieves the data from the database and append all the different entries to you dhcpd.conf file.
I would prefer TCL for this purpose over Bash because it has better string and array handling. I am sure Perl and Python have mysql connectors as well and are even better in string handling but I don't know them.
jlinkels