Merge pull request #44015 from alexshpilkin/resolv-unbound

nixos/networking: include local Unbound in resolv.conf
This commit is contained in:
Silvan Mosberger 2018-07-24 22:53:53 +02:00 committed by GitHub
commit 7eb5ba7618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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