cluster/services/dns: client: use more DNS servers

This commit is contained in:
Max Headroom 2023-03-22 23:23:14 +01:00
parent 7985d891a0
commit ae07af5a80

View file

@ -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;
}