[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 1/2] v3: put dnsmasq parameters into a file instead of the command line



On 10/23/2012 04:10 PM, Laine Stump wrote:
>Can you provide a bit more info as to what you would like to change
>without restarting dnsmasq.
Right now, the ranges of IP addresses, the IP addresses to listen on,
the domain. There may be other things in the future as
virNetworkUpdate() gets fleshed out.
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2012q4/006440.html
The most difficult problem is that dnsmasq throws away root permissions after start-up, so re-reading the configuration is impossible if acting on the new configuration involves anything that needs root (for instance, binding sockets to ports <1024 or opening the lease file.)

The philosophy is that things that would be really useful to change, without restarting dnsmasq, and certainly don't need root, are re-read on SIGHUP. That's dhcp-host information and dhcp-option information in special configuration files, /etc/hosts and /etc/ethers, and possibly /etc/resolv.conf, if it's not being polled anyway.

For anything else, restarting dnsmasq is a pain-free operation anyway: there's very little state and nothing important is lost over a reboot.

Gene


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]