Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
2655e726
Commit
2655e726
authored
Feb 12, 2018
by
neilpang
Browse files
update dns he
parent
012dd698
Changes
3
Show whitespace changes
Inline
Side-by-side
README.md
View file @
2655e726
...
...
@@ -315,6 +315,13 @@ You don't have to do anything manually!
1.
Azure DNS
1.
selectel.com(selectel.ru) DNS API
1.
zonomi.com DNS API
And:
1.
lexicon DNS API: https://github.com/Neilpang/acme.sh/wiki/How-to-use-lexicon-dns-api
...
...
dnsapi/README.md
View file @
2655e726
...
...
@@ -585,7 +585,7 @@ For issues, please report to https://github.com/non7top/acme.sh/issues.
## 31. Use Hurricane Electric
Hurricane Electric doesn't have an API so just set your login credentials like so:
Hurricane Electric
(https://dns.he.net/)
doesn't have an API so just set your login credentials like so:
```
export HE_Username="yourusername"
...
...
dnsapi/dns_he.sh
View file @
2655e726
...
...
@@ -19,14 +19,16 @@ dns_he_add() {
_txt_value
=
$2
_info
"Using DNS-01 Hurricane Electric hook"
HE_Username
=
"
${
HE_Username
:-
$(
_readaccountconf_mutable HE_Username
)
}
"
HE_Password
=
"
${
HE_Password
:-
$(
_readaccountconf_mutable HE_Password
)
}
"
if
[
-z
"
$HE_Username
"
]
||
[
-z
"
$HE_Password
"
]
;
then
HE_Username
=
HE_Password
=
_err
"No auth details provided. Please set user credentials using the
\$
HE_Username and
\$
HE_Password envoronment variables."
return
1
fi
_saveaccountconf HE_Username
"
$HE_Username
"
_saveaccountconf HE_Password
"
$HE_Password
"
_saveaccountconf
_mutable
HE_Username
"
$HE_Username
"
_saveaccountconf
_mutable
HE_Password
"
$HE_Password
"
# Fills in the $_zone_id
_find_zone
"
$_full_domain
"
||
return
1
...
...
@@ -62,7 +64,8 @@ dns_he_rm() {
_full_domain
=
$1
_txt_value
=
$2
_info
"Cleaning up after DNS-01 Hurricane Electric hook"
HE_Username
=
"
${
HE_Username
:-
$(
_readaccountconf_mutable HE_Username
)
}
"
HE_Password
=
"
${
HE_Password
:-
$(
_readaccountconf_mutable HE_Password
)
}
"
# fills in the $_zone_id
_find_zone
"
$_full_domain
"
||
return
1
_debug
"Zone id
\"
$_zone_id
\"
will be used."
...
...
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