Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
faedea21
Commit
faedea21
authored
Jan 19, 2022
by
neilpang
Browse files
Update dns_ddnss.sh
parent
e1a0f570
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_ddnss.sh
View file @
faedea21
...
@@ -12,7 +12,7 @@
...
@@ -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() {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment