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