Scripts and more for Knot DNS
Backup the contents of /etc/knot
and all zones.
Bash function for manually editing zones with your default editor.
Works with the first line (#comment) from keys generated with keymgr -t foo.bar.tld
.
awk -F: '/^# / {sub(/^# /,"",$1); printf "key %s {\n\talgorithm %s;\n\tsecret \"s\";\n};\n", $2, $1, $3}'