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
|
2021-03-15 23:02:07 +01:00
|
|
|
inherit (depot.nix.utils)
|
|
|
|
drvTargets
|
|
|
|
;
|
|
|
|
|
2021-03-14 01:58:30 +01:00
|
|
|
checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" {} ''
|
|
|
|
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
|
|
|
|
'';
|
|
|
|
|
2021-03-15 23:02:07 +01:00
|
|
|
in 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
|
|
|
}
|