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
ac11ba3d
Commit
ac11ba3d
authored
Mar 14, 2017
by
boyanpeychev
Browse files
Add DNS API for ClouDNS
parent
3d859865
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cloudns.sh
View file @
ac11ba3d
...
...
@@ -28,7 +28,7 @@ dns_cloudns_add() {
_debug host
"
$host
"
_debug record
"
$record
"
_debug record_id
"
$record_id
"
if
[
-z
"
$record_id
"
]
;
then
_info
"Adding the TXT record for
$1
"
_dns_cloudns_http_api_call
"dns/add-record.json"
"domain-name=
$zone
&record-type=TXT&host=
$host
&record=
$record
&ttl=60"
...
...
@@ -126,7 +126,7 @@ _dns_cloudns_get_zone_name() {
return
0
fi
i
=
$((
${
i
}
+
1
))
i
=
$((
i
+
1
))
done
return
1
}
...
...
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