additional dnsmasq configuration parameters
|Reported by:||jhalfmoon@…||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
|Keywords:||dns dhcp dnsmasq||Cc:|
This patch adds extra configurable parameters to UCI for dnsmasq. Thes parameters are useful when one wants to run dnsmasq exclusively on one or multiple definded interfaces, instead of the default of listening on all interfaces. The following two configuration options are added:
When true, this boolean forces dnsmasq to not bind to 0.0.0.0 but to individual interfaces. It is linked to the following command line parameter:
-z, --bind-interfaces Bind only to interfaces in use.
On systems which support it, dnsmasq binds the wildcard address, even when it is listening on only some interfaces. It then discards requests that it shouldn't reply to. This has the advantage of working even when interfaces come and go and change address. This option forces dnsmasq to really bind only the interfaces it is listening on. About the only time when this is useful is when running another nameserver (or another instance of dnsmasq) on the same machine. Setting this option also enables multiple instances of dnsmasq which provide DHCP service to run in the same machine.
This string defines to which interfaces dnsmasq should bind. It is linked to the following command line parameter:
-i, --interface=interface Listen only on the specified interface(s).
Dnsmasq automatically adds the loopback (local) interface to the list of interfaces to use when the --interface option is used. If no --interface or --listen-address options are given dnsmasq listens on all available interfaces except any given in --except-interface options. IP alias interfaces (eg "eth1:0") cannot be used with --interface or --except-interface options, use --listen-address instead.