about summary refs log blame commit diff
path: root/ops/dns/default.nix
blob: 1007be08f7839e3ecd4819ae1f781bdc8b857473 (plain) (tree)
1
2
3
4
5
6
7
8
                                                            
                     

   



                           



                                                                        
               
                                                        

                                               
 
# Performs simple (local-only) validity checks on DNS zones.
{ depot, pkgs, ... }:

let
  inherit (depot.nix.utils)
    drvTargets
    ;

  checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" {} ''
    ${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
  '';

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