From 81fa1ceeee3b21e1d20e40f924a05fc1bb58e16c Mon Sep 17 00:00:00 2001 From: Alexander Shpilkin Date: Mon, 23 Jul 2018 16:26:03 +0200 Subject: nixos/networking: include local Unbound in resolv.conf Previously, only BIND, dnsmasq and resolved were included in resolv.conf. Recognize an Unbound installation as well. --- nixos/modules/config/networking.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nixos/modules/config/networking.nix') 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" -- cgit 1.4.1