From 5217b2629a2f456c254d778c3c7e3b2c8d4ada25 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 12 Sep 2024 16:43:36 +0200 Subject: [PATCH] Increase maximum number of concurrent DNS queries for dnsmasq --- openmptcprouter/files/etc/uci-defaults/1940-omr-dns | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns index 5f567e3a2..02d0c64b8 100755 --- a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns +++ b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns @@ -65,6 +65,12 @@ if [ "$(uci -q get dhcp.@dnsmasq[0].rebind_domain)" = "" ]; then commit dhcp EOF fi +if [ "$(uci -q get dhcp.@dnsmasq[0].dnsforwardmax)" = "" ]; then + uci -q batch <<-EOF >/dev/null + set dhcp.@dnsmasq[-1].dnsforwardmax='1500' + commit dhcp + EOF +fi if [ "$(uci -q get dhcp.lan.dhcp_options)" = "" ]; then uci -q batch <<-EOF >/dev/null uci add_list dhcp.lan.dhcp_option='252,"\n"'