[Dnsmasq-discuss] Add address file option
simon at thekelleys.org.uk
Thu Mar 4 10:14:57 GMT 2010
Don Muller wrote:
> Hi Simon,
> I have another suggestion that I hope you don’t talk me out of J.
> In the config file or command line you can specify an IP address to
> return for any host in the given domains via
> While this is nice, every time you add an entry you have to restart
> dnsmasq. At least I think you do. I’d like to ask for the ability to
> specify a file to read that contains these entries which will be reread
> upon receipt of the SIGHUP signal.
This isn't as easy as it looks:
is a variant of
almost all of the code-paths are shared. There's a variant of the
which allows specification of the local address and port. If the port is
less than 1024, binding that needs root, hence it can't be done on a
I'd be rather more inclined to extend the DBus interface, which allows
dynamic setting of servers (but not source ports)
I'm still bewildered why people are so allergic to restarting dnsmasq:
it takes almost no time, doesn't disrupt existing connections and the
only state lost is the cache, which is quickly and transparently replaced.
More information about the Dnsmasq-discuss