dnsmasq: Add option --min-port
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jan 2016 11:24:15 +0000 (11:24 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jan 2016 11:24:15 +0000 (11:24 +0000)
By default dnsmasq uses random ports for outbound dns queries;
when the minport UCI option is specified the ports used will
always be larger than the specified value.
This is usefull for systems behind firewalls.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 48244

package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init

index d4a6f1f672a309ef1d9d8fb91997626cee9e8398..de0237b314f5d79d844ee1e3793c52dc6ce54a52 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.75
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
index 0cec6d8924e559781ab6f1277bcc763fb01c72df..efc96273a2f39b7392e0a19f9f553699a73a4369 100644 (file)
@@ -146,6 +146,7 @@ dnsmasq() {
        append_parm "$cfg" ednspacket_max "--edns-packet-max"
        append_parm "$cfg" dhcpleasemax "--dhcp-lease-max"
        append_parm "$cfg" "queryport" "--query-port"
+       append_parm "$cfg" "minport" "--min-port"
        append_parm "$cfg" "domain" "--domain"
        append_parm "$cfg" "local" "--server"
        config_list_foreach "$cfg" "server" append_server