nixpkgs/pkgs/data/misc/dns-root-data/update-root-key.sh
2017-07-12 09:45:25 +02:00

10 lines
201 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p busybox unbound
TMP=`mktemp`
unbound-anchor -a $TMP
grep -Ev "^($$|;)" $TMP | sed -e 's/ ;;count=.*//' > root.key
rm $TMP
unbound-anchor -F -a root.ds