diff options
Diffstat (limited to 'ops/dns/default.nix')
-rw-r--r-- | ops/dns/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ops/dns/default.nix b/ops/dns/default.nix new file mode 100644 index 000000000000..33fe6d6fe71e --- /dev/null +++ b/ops/dns/default.nix @@ -0,0 +1,14 @@ +# Performs simple (local-only) validity checks on DNS zones. +{ depot, pkgs, ... }: + +let + checkZone = zone: file: pkgs.runCommand "${zone}-check" { } '' + ${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; +} |