about summary refs log blame commit diff
path: root/ops/dns/default.nix
blob: d2f75f836c003069d5ef9f761bee19b4113053b2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













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