change bind-interfaces to bind-dynamic so dnsmasq properly binds to wireguard interface

This commit is contained in:
Matthew Saunders Brown 2025-02-24 10:22:11 -08:00
parent b10050cf16
commit 8c3f37d4fb

View File

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