2022-05-19 14:39:52 +00:00
|
|
|
# Performs simple (local-only) validity checks on DNS zones.
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2022-10-02 21:23:44 +00:00
|
|
|
checkZone = zone: file: pkgs.runCommand "${zone}-check" { } ''
|
2022-05-19 14:39:52 +00:00
|
|
|
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
in
|
|
|
|
depot.nix.readTree.drvTargets {
|
|
|
|
nixery-dev = checkZone "nixery.dev" ./nixery.dev.zone;
|
|
|
|
tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone;
|
|
|
|
tvl-su = checkZone "tvl.su" ./tvl.su.zone;
|
|
|
|
}
|