forked from mirrors/nixpkgs
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.
This commit is contained in:
parent
dae9cf6106
commit
81fa1ceeee
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue