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
06e12a30
Unverified
Commit
06e12a30
authored
Feb 24, 2023
by
An | Anton Röhm
Committed by
GitHub
Feb 24, 2023
Browse files
reduce nanelo dns ttl
parent
d3fefd22
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nanelo.sh
View file @
06e12a30
...
@@ -25,7 +25,7 @@ dns_nanelo_add() {
...
@@ -25,7 +25,7 @@ dns_nanelo_add() {
_saveaccountconf_mutable NANELO_TOKEN
"
$NANELO_TOKEN
"
_saveaccountconf_mutable NANELO_TOKEN
"
$NANELO_TOKEN
"
_info
"Adding TXT record to
${
fulldomain
}
"
_info
"Adding TXT record to
${
fulldomain
}
"
response
=
"
$(
_get
"
$NANELO_API$NANELO_TOKEN
/dns/addrecord?type=TXT&name=
${
fulldomain
}
&value=
${
txtvalue
}
"
)
"
response
=
"
$(
_get
"
$NANELO_API$NANELO_TOKEN
/dns/addrecord?type=TXT&
ttl=60&
name=
${
fulldomain
}
&value=
${
txtvalue
}
"
)
"
if
_contains
"
${
response
}
"
'success'
;
then
if
_contains
"
${
response
}
"
'success'
;
then
return
0
return
0
fi
fi
...
@@ -49,7 +49,7 @@ dns_nanelo_rm() {
...
@@ -49,7 +49,7 @@ dns_nanelo_rm() {
_saveaccountconf_mutable NANELO_TOKEN
"
$NANELO_TOKEN
"
_saveaccountconf_mutable NANELO_TOKEN
"
$NANELO_TOKEN
"
_info
"Deleting resource record
$fulldomain
"
_info
"Deleting resource record
$fulldomain
"
response
=
"
$(
_get
"
$NANELO_API$NANELO_TOKEN
/dns/deleterecord?type=TXT&name=
${
fulldomain
}
&value=
${
txtvalue
}
"
)
"
response
=
"
$(
_get
"
$NANELO_API$NANELO_TOKEN
/dns/deleterecord?type=TXT&
ttl=60&
name=
${
fulldomain
}
&value=
${
txtvalue
}
"
)
"
if
_contains
"
${
response
}
"
'success'
;
then
if
_contains
"
${
response
}
"
'success'
;
then
return
0
return
0
fi
fi
...
...
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