From 8c3f37d4fb896272352cb42012cfdd782f0d7b58 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 24 Feb 2025 10:22:11 -0800 Subject: [PATCH] change bind-interfaces to bind-dynamic so dnsmasq properly binds to wireguard interface --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9e837cc..3e47cc1 100755 --- a/install.sh +++ b/install.sh @@ -104,7 +104,7 @@ systemctl restart stubby.service # download adware + malware hosts file, used by dnsmasq wget --output-document=/usr/local/etc/hosts https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts # remove ipv6 records -sed -i '/::/d' /usr/local/etc/hosts +# sed -i '/::/d' /usr/local/etc/hosts # dnsmasq will use adware + malware hosts file # and listen on wireguard server private lan IP @@ -130,7 +130,7 @@ echo "cache-size=0" >> /etc/dnsmasq.d/local.conf echo "no-negcache" >> /etc/dnsmasq.d/local.conf echo "listen-address=10.96.0.1" >> /etc/dnsmasq.d/local.conf echo "no-dhcp-interface=10.96.0.1" >> /etc/dnsmasq.d/local.conf -echo "bind-interfaces" >> /etc/dnsmasq.d/local.conf +echo "bind-dynamic" >> /etc/dnsmasq.d/local.conf # remove temporary policy-rc.d rm -f /usr/sbin/policy-rc.d sed -i 's|After=network.target|After=wg-quick@wg0.service|g' /lib/systemd/system/dnsmasq.service