2021-04-14 17:20:16 +02:00
|
|
|
# Performs simple (local-only) validity checks on DNS zones.
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2022-01-30 17:06:58 +01:00
|
|
|
checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" { } ''
|
2021-04-14 17:20:16 +02:00
|
|
|
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
|
|
|
|
'';
|
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
in
|
|
|
|
depot.nix.readTree.drvTargets {
|
|
|
|
kontemplate-works = checkZone "kontemplate.works" ./kontemplate.works.zone;
|
2021-04-14 17:20:16 +02:00
|
|
|
tazj-in = checkZone "tazj.in" ./tazj.in.zone;
|
|
|
|
}
|