From 9fd61e501ee1993b9364775c2ef213b0c46cb3cf Mon Sep 17 00:00:00 2001 From: Ycarus Date: Mon, 17 Dec 2018 17:01:22 +0100 Subject: [PATCH] No cache for DNS error --- openmptcprouter/files/etc/uci-defaults/1940-omr-dns | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns index 3a69b0d0b..1f3cdef9f 100755 --- a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns +++ b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns @@ -17,9 +17,20 @@ if [ "$(uci -q show dhcp | grep 127.0.0.1#5353)" = "" ]; then fi uci -q batch <<-EOF >/dev/null set dhcp.@dnsmasq[-1].noresolv=1 + set dhcp.@dnsmasq[-1].nonegcache=1 del dhcp.@dnsmasq[-1].interface commit dhcp EOF +#uci -q batch <<-EOF >/dev/null +# set unbound.@unbound[-1].add_local_fqdn=0 +# set unbound.@unbound[-1].localservice=1 +# set unbound.@unbound[-1].rebind_localhost=0 +# set unbound.@unbound[-1].rebind_protection=1 +# set unbound.@unbound[-1].unbound_control=1 +# commit unbound +#EOF + + rm -f /tmp/luci-indexcache exit 0