nixpkgs/pkgs/data/misc/dns-root-data/update-root-key.sh

10 lines
201 B
Bash
Raw Normal View History

2017-06-15 20:11:56 -07: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/ ;;count=.*//' > root.key
rm $TMP
unbound-anchor -F -a root.ds