If updating zonefile failed, print the 'nsupdate' command on the terminal console.
This commit is contained in:
parent
eb6e511328
commit
47b60e6954
@ -1213,6 +1213,18 @@ EOF
|
|||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
echo_failed
|
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)"
|
error "$(cat $log_file)"
|
||||||
delete_generated_files
|
delete_generated_files
|
||||||
clean_up 1
|
clean_up 1
|
||||||
|
Loading…
Reference in New Issue
Block a user