summaryrefslogtreecommitdiff
path: root/package/network/services/dnsmasq
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2013-05-17 14:44:12 +0000
committerSteven Barth <cyrus@openwrt.org>2013-05-17 14:44:12 +0000
commitdd161ae62b19ee40db81a544b879eeaf22766e58 (patch)
treead9fd0630380adf1fca454678e36f0daf3c89de1 /package/network/services/dnsmasq
parent334c40da1465e03cbc2f3448c9fee9f5de52e980 (diff)
downloadmtk-20170518-dd161ae62b19ee40db81a544b879eeaf22766e58.zip
mtk-20170518-dd161ae62b19ee40db81a544b879eeaf22766e58.tar.gz
mtk-20170518-dd161ae62b19ee40db81a544b879eeaf22766e58.tar.bz2
dnsmasq: add directory for external hosts-files
SVN-Revision: 36655
Diffstat (limited to 'package/network/services/dnsmasq')
-rw-r--r--package/network/services/dnsmasq/Makefile2
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init3
2 files changed, 4 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index 5ad32f2..467c934 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.66
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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 62adb26..cc5ff7d 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -134,6 +134,9 @@ dnsmasq() {
config_get hostsfile "$cfg" dhcphostsfile
[ -e "$hostsfile" ] && xappend "--dhcp-hostsfile=$hostsfile"
+ mkdir -p /tmp/hosts
+ xappend "--addn-hosts=/tmp/hosts"
+
local rebind
config_get_bool rebind "$cfg" rebind_protection 1
[ $rebind -gt 0 ] && {