core/pkgs/by-name/dn/dns-root-data/update-root-key.sh
2024-05-13 22:37:40 -04:00

11 lines
229 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/ ;;.*//' > root.key
unbound-anchor -F -a "$TMP"
sed '/^;/d' < "$TMP" > root.ds
rm $TMP