Browse Source
Update dns_ddnss.sh
Debug API address and changed TXT remove record.
pull/3781/head
JojoBr0
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
dnsapi/dns_ddnss.sh
|
|
@ -12,7 +12,7 @@ |
|
|
# -- |
|
|
# -- |
|
|
# |
|
|
# |
|
|
|
|
|
|
|
|
DDNSS_DNS_API="https://ip4.ddnss.de/upd.php" |
|
|
|
|
|
|
|
|
DDNSS_DNS_API="https://ddnss.de/upd.php" |
|
|
|
|
|
|
|
|
######## Public functions ##################### |
|
|
######## Public functions ##################### |
|
|
|
|
|
|
|
|
@ -77,7 +77,7 @@ dns_ddnss_rm() { |
|
|
|
|
|
|
|
|
# Now remove the TXT record from DDNS DNS |
|
|
# Now remove the TXT record from DDNS DNS |
|
|
_info "Trying to remove TXT record" |
|
|
_info "Trying to remove TXT record" |
|
|
if _ddnss_rest GET "key=$DDNSS_Token&host=$_ddnss_domain&txtm=1&txt=."; then |
|
|
|
|
|
|
|
|
if _ddnss_rest GET "key=$DDNSS_Token&host=$_ddnss_domain&txtm=2"; then |
|
|
if [ "$response" = "Updated 1 hostname." ]; then |
|
|
if [ "$response" = "Updated 1 hostname." ]; then |
|
|
_info "TXT record has been successfully removed from your DDNSS domain." |
|
|
_info "TXT record has been successfully removed from your DDNSS domain." |
|
|
return 0 |
|
|
return 0 |
|
|
|