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
7b5d94d0
Unverified
Commit
7b5d94d0
authored
Jan 31, 2023
by
Roman Lumetsberger
Committed by
GitHub
Jan 31, 2023
Browse files
convert domain and subdomain to lower case
parent
cb021efa
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_ipv64.sh
View file @
7b5d94d0
...
...
@@ -36,6 +36,10 @@ dns_ipv64_add() {
_debug _sub_domain
"
$_sub_domain
"
_debug _domain
"
$_domain
"
# convert to lower case
_domain
=
$(
echo
"
$_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
_sub_domain
=
$(
echo
"
$_sub_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
# Now add the TXT record
_info
"Trying to add TXT record"
if
_ipv64_rest
"POST"
"add_record=
$_domain
&praefix=
$_sub_domain
&type=TXT&content=
$txtvalue
"
;
then
...
...
@@ -70,6 +74,10 @@ dns_ipv64_rm() {
_debug _sub_domain
"
$_sub_domain
"
_debug _domain
"
$_domain
"
# convert to lower case
_domain
=
$(
echo
"
$_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
_sub_domain
=
$(
echo
"
$_sub_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
# Now delete the TXT record
_info
"Trying to delete TXT record"
if
_ipv64_rest
"DELETE"
"del_record=
$_domain
&praefix=
$_sub_domain
&type=TXT&content=
$txtvalue
"
;
then
...
...
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