commit 86e55ff3cf2ef954005e521b96a63ba4c4807849
parent d0376d41016e0ddbd532b63f7fd3b2f4fcbcdf37
Author: Peter Collingbourne <peter@pcc.me.uk>
Date: Sun, 3 May 2026 00:23:53 -0700
dnsmasq: Pass --bind-interfaces
This allows users to run another DNS server, such as unbound, and have
dnsmasq use it as the upstream.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/modules/dnsmasq/service.nix b/modules/dnsmasq/service.nix
@@ -48,6 +48,7 @@ longrun {
--domain=${domain} \
--group=${group} \
--interface=$(output ${interface} ifname) \
+ --bind-interfaces \
${lib.concatStringsSep " " (builtins.map (r: "--dhcp-range=${r}") ranges)} \
${lib.concatStringsSep " " (builtins.map (r: "--server=${r}") upstreams)} \
--keep-in-foreground \