AA: backport r36655 from trunk
[12.09/openwrt.git] / package / dnsmasq / files / dnsmasq.init
index 85c22c3..5d5d97f 100644 (file)
@@ -133,6 +133,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 ] && {