5b9229186f
Change-Id: I6016d92e9c231a257e06644dfcf44a4aaa12ac4d Reviewed-on: https://cl.tvl.fyi/c/depot/+/2601 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: lukegb <lukegb@tvl.fyi>
15 lines
402 B
Nix
15 lines
402 B
Nix
# 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;
|
|
tvl-su = checkZone "tvl.su" ./tvl.su.zone;
|
|
};
|
|
in zones // {
|
|
meta.targets = builtins.attrNames zones;
|
|
}
|