cluster/services/dns: client: use more DNS servers
This commit is contained in:
parent
7985d891a0
commit
ae07af5a80
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,11 @@
|
||||||
{ cluster, ... }:
|
{ cluster, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
recursors = lib.pipe (cluster.config.services.dns.nodes.coredns) [
|
||||||
|
(map (node: cluster.config.hostLinks.${node}.dnsResolverBackend.ipv4))
|
||||||
|
];
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
networking.nameservers = [ cluster.config.links.dnsResolver.ipv4 ];
|
networking.nameservers = [ cluster.config.links.dnsResolver.ipv4 ] ++ recursors;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue