2017-06-16 04:11:56 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#!nix-shell -i bash -p busybox unbound
|
|
|
|
|
|
|
|
TMP=`mktemp`
|
2017-07-15 09:38:01 +01:00
|
|
|
unbound-anchor -a "$TMP"
|
|
|
|
grep -Ev "^($$|;)" "$TMP" | sed -e 's/ ;;.*//' > root.key
|
2017-06-16 04:11:56 +01:00
|
|
|
|
2017-07-15 09:38:01 +01:00
|
|
|
unbound-anchor -F -a "$TMP"
|
|
|
|
sed '/^;/d' < "$TMP" > root.ds
|
|
|
|
rm $TMP
|