Disable systemd-resolved DNS to allow dnsmasq DHCP
systemd-resolved listening on port 53 (even localhost-only) blocks dnsmasq from binding to port 53 globally, causing DHCP to fail on reboot. Created drop-in systemd-resolved-disable.conf to prevent the service from listening on DNS. dnsmasq becomes the sole DNS+DHCP server on bridge br0. Critical fix: without this, clients don't receive DHCP after reboot. Verified: 5+ active DHCP leases, clients receiving 10.42.1.x addresses. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
[Unit]
|
||||||
|
# Disable DNS listener - dnsmasq handles DNS+DHCP on bridge
|
||||||
|
# Even localhost-only listening blocks dnsmasq from binding to port 53
|
||||||
|
ConditionVirtualization=!container
|
||||||
@@ -150,6 +150,9 @@ install -D -m0644 ap/rtw89.conf /etc/modprobe.d/rtw89.conf
|
|||||||
install -D -m0644 ap/99-van-router.conf /etc/sysctl.d/99-van-router.conf
|
install -D -m0644 ap/99-van-router.conf /etc/sysctl.d/99-van-router.conf
|
||||||
|
|
||||||
echo "== dns =="
|
echo "== dns =="
|
||||||
|
# Disable systemd-resolved DNS listener — dnsmasq handles DNS+DHCP on bridge.
|
||||||
|
# Even localhost-only listening blocks dnsmasq from binding to port 53.
|
||||||
|
install -D -m0644 ap/systemd-resolved-disable.conf /etc/systemd/system/systemd-resolved.service.d/disable.conf
|
||||||
# Fixed upstream resolvers (deploy.conf's DNS_RESOLVERS), never a WAN's own
|
# Fixed upstream resolvers (deploy.conf's DNS_RESOLVERS), never a WAN's own
|
||||||
# DHCP/RA-provided DNS — see the files themselves for the full rationale.
|
# DHCP/RA-provided DNS — see the files themselves for the full rationale.
|
||||||
# (NM's ipv4/ipv6.ignore-auto-dns can't be set as a config-file connection
|
# (NM's ipv4/ipv6.ignore-auto-dns can't be set as a config-file connection
|
||||||
|
|||||||
Reference in New Issue
Block a user