[Dnsmasq-discuss] reload and restart; difference between?

B. Cook bcook at poughkeepsieschools.org
Thu Oct 8 17:49:35 BST 2009

This might be a FreeBSD -only- question but..

Dnsmasq version 2.50  Copyright (C) 2000-2009 Simon Kelley
Compile time options no-IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP

So I have a seemingly complex setup.. but suffice to say it all works as 

I only hand out dhcp to known addresses; we recently had a deployment of 
300 new computers, which did not get entered into the "known hosts" file.

I did add the "known hostname" which allowed the pc to get an IP while 
its machine name matched the "known".  I made a little script that would 
grep the logs for the MAC addresses of the "known" hostname and add it 
to the "known hosts" file; and then restart the dnsmasq process (which 
was also doing dns).

This usually takes dnsmasq about 3-5 seconds to restart, which then 
causes people to be w/o dns (on a network of almost 3k machines) and 
makes the phone ring from time to time.. breaks cups in weird ways.. 
i.e. creates problems..

So I found that I could -reload- dnsmasq instead of -restart- it, but it 
seems that -reload- does not -reread- everything that has changed..

Is there someway to make this happen? or someway to get a -reload- to 
look at all the .conf and/or include files again?

Or is there something easier that I could do to accomplish what I am 
looking for?

More information about the Dnsmasq-discuss mailing list