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
|
|
|
|
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-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
|
|
|
}
|