2021-03-14 01:58:30 +01:00
|
|
|
# Performs simple (local-only) validity checks on DNS zones.
|
2021-03-15 23:02:07 +01:00
|
|
|
{ depot, pkgs, ... }:
|
2021-03-14 01:58:30 +01:00
|
|
|
|
|
|
|
let
|
2022-01-30 17:06:58 +01:00
|
|
|
checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" { } ''
|
2021-03-14 01:58:30 +01: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 {
|
2021-08-06 13:13:08 +02:00
|
|
|
nixery-dev = checkZone "nixery.dev" ./nixery.dev.zone;
|
2021-03-15 23:02:07 +01:00
|
|
|
tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone;
|
|
|
|
tvl-su = checkZone "tvl.su" ./tvl.su.zone;
|
2021-03-14 01:58:30 +01:00
|
|
|
}
|