diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index 48c3b41bc091..1ef5313d3fdd 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -9,7 +9,9 @@ let cfg = config.networking; dnsmasqResolve = config.services.dnsmasq.enable && config.services.dnsmasq.resolveLocalQueries; - hasLocalResolver = config.services.bind.enable || dnsmasqResolve; + hasLocalResolver = config.services.bind.enable || + config.services.unbound.enable || + dnsmasqResolve; resolvconfOptions = cfg.resolvconfOptions ++ optional cfg.dnsSingleRequest "single-request"