mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
No cache for DNS error
This commit is contained in:
parent
6c6ebb1250
commit
9fd61e501e
1 changed files with 11 additions and 0 deletions
|
@ -17,9 +17,20 @@ if [ "$(uci -q show dhcp | grep 127.0.0.1#5353)" = "" ]; then
|
||||||
fi
|
fi
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set dhcp.@dnsmasq[-1].noresolv=1
|
set dhcp.@dnsmasq[-1].noresolv=1
|
||||||
|
set dhcp.@dnsmasq[-1].nonegcache=1
|
||||||
del dhcp.@dnsmasq[-1].interface
|
del dhcp.@dnsmasq[-1].interface
|
||||||
commit dhcp
|
commit dhcp
|
||||||
EOF
|
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
|
rm -f /tmp/luci-indexcache
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue