create_opendkim_key.sh: store nsupdate command into key directory.

This commit is contained in:
Christoph 2024-02-14 13:28:35 +01:00
parent 892d3bb341
commit f76103664e

View File

@ -1230,6 +1230,19 @@ update add ${time_stamp}.${update_zone}. $ttl IN TXT $(cat ${key_dir}/${time_sta
send
EOF
END
cat <<END > ${key_dir}/${time_stamp}.nsupdate.command
cat <<EOF | nsupdate -v -L3
server $dns_dkim_zone_master_server
zone $update_zone
key ${key_algo}:$key_name $key_secret
update delete ${time_stamp}.${update_zone}.
update add ${time_stamp}.${update_zone}. $ttl IN TXT $(cat ${key_dir}/${time_stamp}.nsupdate)
send
EOF
END
else