|
|
@ -47,7 +47,7 @@ dns_he_add() {
|
|
|
|
response="$(_post "$body" "https://dns.he.net/")"
|
|
|
|
response="$(_post "$body" "https://dns.he.net/")"
|
|
|
|
exit_code="$?"
|
|
|
|
exit_code="$?"
|
|
|
|
if [ "$exit_code" -eq 0 ]; then
|
|
|
|
if [ "$exit_code" -eq 0 ]; then
|
|
|
|
_info "TXT record added successfuly."
|
|
|
|
_info "TXT record added successfully."
|
|
|
|
else
|
|
|
|
else
|
|
|
|
_err "Couldn't add the TXT record."
|
|
|
|
_err "Couldn't add the TXT record."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -96,7 +96,7 @@ dns_he_rm() {
|
|
|
|
>/dev/null
|
|
|
|
>/dev/null
|
|
|
|
exit_code="$?"
|
|
|
|
exit_code="$?"
|
|
|
|
if [ "$exit_code" -eq 0 ]; then
|
|
|
|
if [ "$exit_code" -eq 0 ]; then
|
|
|
|
_info "Record removed successfuly."
|
|
|
|
_info "Record removed successfully."
|
|
|
|
else
|
|
|
|
else
|
|
|
|
_err "Could not clean (remove) up the record. Please go to HE administration interface and clean it by hand."
|
|
|
|
_err "Could not clean (remove) up the record. Please go to HE administration interface and clean it by hand."
|
|
|
|
return "$exit_code"
|
|
|
|
return "$exit_code"
|
|
|
|