From e96463b21a088b0db76395d328b6a48e625fdb48 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 25 Jun 2024 11:01:07 +0200 Subject: [PATCH] Link unbound to dnsmasq --- openmptcprouter/files/etc/uci-defaults/1940-omr-dns | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns index 7a4147e04..ab2102541 100755 --- a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns +++ b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns @@ -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