mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Link unbound to dnsmasq
This commit is contained in:
parent
a4c26403b4
commit
e96463b21a
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,16 @@ if [ -z "$(uci -q get unbound.ub_main.interface)" ]; then
|
|||
set unbound.ub_main.interface='loopback'
|
||||
commit unbound
|
||||
EOF
|
||||
fi
|
||||
if [ -z "$(uci -q get unbound.ub_dhcp_link)" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set unbound.ub_main.dhcp_link='dnsmasq'
|
||||
del unbound.ub_main.domain_type
|
||||
del unbound.ub_main.add_local_fqdn
|
||||
del unbound.ub_main.add_wan_fqdn
|
||||
del unbound.ub_main.add_extra_dns
|
||||
commit unbound
|
||||
EOF
|
||||
|
||||
fi
|
||||
if [ "$(uci -q show dhcp | grep 'use-application-dns.net')" = "" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue