Merge pull request #44015 from alexshpilkin/resolv-unbound
nixos/networking: include local Unbound in resolv.conf
This commit is contained in:
commit
7eb5ba7618
@ -9,7 +9,9 @@ let
|
|||||||
cfg = config.networking;
|
cfg = config.networking;
|
||||||
dnsmasqResolve = config.services.dnsmasq.enable &&
|
dnsmasqResolve = config.services.dnsmasq.enable &&
|
||||||
config.services.dnsmasq.resolveLocalQueries;
|
config.services.dnsmasq.resolveLocalQueries;
|
||||||
hasLocalResolver = config.services.bind.enable || dnsmasqResolve;
|
hasLocalResolver = config.services.bind.enable ||
|
||||||
|
config.services.unbound.enable ||
|
||||||
|
dnsmasqResolve;
|
||||||
|
|
||||||
resolvconfOptions = cfg.resolvconfOptions
|
resolvconfOptions = cfg.resolvconfOptions
|
||||||
++ optional cfg.dnsSingleRequest "single-request"
|
++ optional cfg.dnsSingleRequest "single-request"
|
||||||
|
Loading…
Reference in New Issue
Block a user