Skip to content

Commit

Permalink
Revert "dnsmasq: use "hostsdir" instead of "addn-hosts""
Browse files Browse the repository at this point in the history
This reverts commit a03035d
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>
  • Loading branch information
dedeckeh committed May 24, 2018
1 parent 85048a9 commit bcf20e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/network/services/dnsmasq/files/dnsmasq.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit bcf20e0

@zxdavb
Copy link

@zxdavb zxdavb commented on bcf20e0 May 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.. ignore me ..

Please sign in to comment.