aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDUPONCHEEL Sébastien <sebastien.duponcheel@corp.ovh.com>2017-06-28 17:07:39 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-07-03 22:08:21 +0200
commitf3ae0f80bdf63a4ba7072d679f3cf5d96c7ea279 (patch)
tree8a1c5f35a277f482ab99a9d1443e8db0bd5e2438 /package
parent23da3fbf68c8a3203afbc9ddac6c1bfde6bbf665 (diff)
downloadupstream-f3ae0f80bdf63a4ba7072d679f3cf5d96c7ea279.tar.gz
upstream-f3ae0f80bdf63a4ba7072d679f3cf5d96c7ea279.tar.bz2
upstream-f3ae0f80bdf63a4ba7072d679f3cf5d96c7ea279.zip
dnsmasq: dnsmasq --rev-server support
This is functionally the same as --server, but provides some syntactic sugar to make specifying address-to-name queries easier. For example --rev-server=1.2.3.0/24,192.168.0.1 is exactly equivalent to --server=/3.2.1.in-addr.arpa/192.168.0.1 Signed-off-by: DUPONCHEEL Sébastien <sebastien.duponcheel@corp.ovh.com>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/dnsmasq/Makefile2
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init5
2 files changed, 6 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index 11baff37e8..401071fe92 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=dnsmasq
PKG_VERSION:=2.77
-PKG_RELEASE:=5
+PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq/
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 065d1fd8c2..19517d937d 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -125,6 +125,10 @@ append_server() {
xappend "--server=$1"
}
+append_rev_server() {
+ xappend "--rev-server=$1"
+}
+
append_address() {
xappend "--address=$1"
}
@@ -823,6 +827,7 @@ dnsmasq_start()
append_parm "$cfg" "domain" "--domain"
append_parm "$cfg" "local" "--server"
config_list_foreach "$cfg" "server" append_server
+ config_list_foreach "$cfg" "rev_server" append_rev_server
config_list_foreach "$cfg" "address" append_address
config_list_foreach "$cfg" "ipset" append_ipset
config_list_foreach "$cfg" "interface" append_interface