2017-06-16 03:11:56 +00:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
rootHints = fetchurl {
|
2017-11-20 12:50:26 +00:00
|
|
|
# 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") [
|
2020-07-01 09:50:15 +00:00
|
|
|
"https://gitlab.nic.cz/knot/knot-resolver/raw/"
|
2017-11-20 12:50:26 +00:00
|
|
|
"https://raw.githubusercontent.com/CZ-NIC/knot-resolver/"
|
|
|
|
];
|
2017-11-06 19:22:38 +00:00
|
|
|
sha256 = "0vdrff4l8s8grif52dnh091s8qydhh88k25zqd9rj66sf1qwcwxl";
|
2017-06-16 03:11:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rootKey = ./root.key;
|
|
|
|
rootDs = ./root.ds;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-03-22 13:18:43 +00:00
|
|
|
pname = "dns-root-data";
|
|
|
|
version = "2019-01-11";
|
2017-06-16 03:11:56 +00:00
|
|
|
|
|
|
|
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";
|
2017-11-20 12:50:26 +00:00
|
|
|
maintainers = with maintainers; [ fpletz vcunat ];
|
2017-06-16 03:11:56 +00:00
|
|
|
};
|
|
|
|
}
|