d16b298d19
Close #31855.
35 lines
927 B
Nix
35 lines
927 B
Nix
{ stdenv, lib, fetchurl }:
|
|
|
|
let
|
|
|
|
rootHints = fetchurl {
|
|
# Original source https://www.internic.net/domain/named.root
|
|
# occasionally suffers from pointless hash changes,
|
|
# and having stable sources for older versions has advantages, too.
|
|
urls = map (prefix: prefix + "cc5e14a264912/etc/root.hints") [
|
|
"https://gitlab.labs.nic.cz/knot/knot-resolver/raw/"
|
|
"https://raw.githubusercontent.com/CZ-NIC/knot-resolver/"
|
|
];
|
|
sha256 = "0vdrff4l8s8grif52dnh091s8qydhh88k25zqd9rj66sf1qwcwxl";
|
|
};
|
|
|
|
rootKey = ./root.key;
|
|
rootDs = ./root.ds;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "dns-root-data-2017-10-24";
|
|
|
|
buildCommand = ''
|
|
mkdir $out
|
|
cp ${rootHints} $out/root.hints
|
|
cp ${rootKey} $out/root.key
|
|
cp ${rootDs} $out/root.ds
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "DNS root data including root zone and DNSSEC key";
|
|
maintainers = with maintainers; [ fpletz vcunat ];
|
|
};
|
|
}
|