aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-05-24 10:11:20 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-05-24 10:20:45 +0200
commitbcf20e05832aa8b00ab4b5e67a112d7910cca2d0 (patch)
treee9a957a978ae169a1117bc9eac806a9402715b73
parent85048a9c1fa4d37b5896d9237d28bbadbbe09d19 (diff)
downloadupstream-bcf20e05832aa8b00ab4b5e67a112d7910cca2d0.tar.gz
upstream-bcf20e05832aa8b00ab4b5e67a112d7910cca2d0.tar.bz2
upstream-bcf20e05832aa8b00ab4b5e67a112d7910cca2d0.zip
Revert "dnsmasq: use "hostsdir" instead of "addn-hosts""
This reverts commit a03035dad198cd4b51645ceb43c1170f9cf95f16 as it has several issues: -Host file is located in a directory which is not unique per dnsmasq instance -odhcpd writes host info into the same directory but still sends a SIGHUP to dnsmasq Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 24455ee7d9..2c71a777c3 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -938,7 +938,7 @@ dnsmasq_start()
xappend "--dhcp-broadcast=tag:needs-broadcast"
- xappend "--hostsdir=$(dirname $HOSTFILE)"
+ xappend "--addn-hosts=$(dirname $HOSTFILE)"
config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d"
[ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir