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