1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2024-06-25 11:01:07 +02:00
parent a4c26403b4
commit e96463b21a

View file

@ -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