blob: d2f75f836c003069d5ef9f761bee19b4113053b2 (
plain) (
tree)
|
|
# Performs simple (local-only) validity checks on DNS zones.
{ pkgs, ... }:
let
checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" {} ''
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
'';
zones = {
tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone;
};
in zones // {
meta.targets = builtins.attrNames zones;
}
|