core/pkgs/by-name/dn/dns-root-data/update-root-key.sh

11 lines
229 B
Bash
Raw Permalink Normal View History

2024-05-14 02:37:40 +00:00
#!/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