Browse Source

nixos-module/container/dnscache: use data from config.site.dns.localZones

legacy
Astro 9 months ago
parent
commit
a45fb3c484
  1. 39
      nix/nixos-module/container/dnscache.nix

39
nix/nixos-module/container/dnscache.nix

@ -73,37 +73,14 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
# Local networks
forward-zone:
name: "zentralwerk.dn42"
forward-host: "dns.serv.zentralwerk.org"
forward-zone:
name: "72.20.172.in-addr.arpa"
forward-host: "dns.serv.zentralwerk.org"
forward-zone:
name: "73.20.172.in-addr.arpa"
forward-host: "dns.serv.zentralwerk.org"
forward-zone:
name: "74.20.172.in-addr.arpa"
forward-host: "dns.serv.zentralwerk.org"
forward-zone:
name: "75.20.172.in-addr.arpa"
forward-host: "dns.serv.zentralwerk.org"
forward-zone:
name: "76.20.172.in-addr.arpa"
forward-host: "dns.serv.zentralwerk.org"
forward-zone:
name: "77.20.172.in-addr.arpa"
forward-host: "dns.serv.zentralwerk.org"
forward-zone:
name: "0.0.5.0.2.d.3.c.4.2.0.0.3.2.d.f.ip6.arpa"
forward-host: "dns.serv.zentralwerk.org"
${lib.concatMapStrings ({ name, ... }: ''
forward-zone:
name: "${name}"
forward-host: "${config.site.net.serv.hosts4.dns}"
${lib.concatMapStrings (hosts6:
" forward-host: ${hosts6.dns}\n"
) (builtins.attrValues config.site.net.serv.hosts6)}
'') config.site.dns.localZones}
# C3D2 reverse

Loading…
Cancel
Save