dnsmasq: add listen_address parameter
authorChristian Lamparter <chunkeey@gmail.com>
Thu, 12 Oct 2017 21:16:06 +0000 (23:16 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 13 Oct 2017 14:54:58 +0000 (16:54 +0200)
commit7ffb707576e8c635321275e9f118c8ad27d4c798
tree367655ad4f6bef03a087bc53e06220af0c1dc32c
parent2cd32a3304cd52411da2dfac6db429efcad74ac8
dnsmasq: add listen_address parameter

This patch adds a parser for the uci representation of
dnsmasq's "-a | --listen-address" option.

In summary, this option forces dnsmasq to listen on the
given IP address(es). Both interface and listen-address
options may be given, in which case the set of both
interfaces and addresses is used.

Note that if no interface option is given, but listen_address is,
dnsmasq will not automatically listen on the loopback interface.
To achieve this, the loopback IP addresses, 127.0.0.1 and/or ::1
must be explicitly added.

This option is useful for ujailed dnsmasq instances, that would
otherwise fail to work properly, because listening to the
"This host on this network" address (aka 0.0.0.0 see rfc1700 page 4)
may not be allowed.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> (PKG_RELEASE increase)
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init