If updating zonefile failed, print the 'nsupdate' command on the terminal console.

This commit is contained in:
Christoph 2019-02-15 12:27:59 +01:00
parent eb6e511328
commit 47b60e6954

View File

@ -1213,6 +1213,18 @@ EOF
echo_ok
else
echo_failed
cat <<END
cat <<EOF | nsupdate -v
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
error "$(cat $log_file)"
delete_generated_files
clean_up 1