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

richardvoigt at gmail.com richardvoigt at gmail.com
Fri Oct 9 01:54:44 BST 2009


Use a separate hostsfile, which is read during reload.

The configuration file cannot be reprocessed without a complete
restart because dnsmasq drops root early on and no longer has the
permission needed to listen on privileged ports..

On Thu, Oct 8, 2009 at 11:49 AM, B. Cook <bcook at poughkeepsieschools.org> wrote:
> 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
>  designed..
>
> 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?
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list