2017-06-16 05:11:56 +02:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
rootHints = fetchurl {
|
2017-08-09 16:34:43 +02:00
|
|
|
url = "https://www.internic.net/domain/named.root";
|
2017-09-04 11:50:32 +02:00
|
|
|
sha256 = "01n4bqf95kbvig1hahqzmmdkpn4v7mzfc1p944gq922i5j3fjr92";
|
2017-06-16 05:11:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
rootKey = ./root.key;
|
|
|
|
rootDs = ./root.ds;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-09-04 11:50:32 +02:00
|
|
|
name = "dns-root-data-2017-08-29";
|
2017-06-16 05:11:56 +02: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";
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|