Commit Graph

605 Commits (71e4bbfc99545a06d432855cf7d234a3f038da6d)

Author SHA1 Message Date
Jeremy Knope 29b21b828b Fix DNS API scripts on *BSD
\n isn't available in all regex/sed
Ondrej Simek f7299403f7 Incorporate Neilpang's comments
Ondrej Simek d988542afc Sync with upstream
Ondrej Simek 4285d81ca9 Get rid of curl.
Vladimir Berezhnoy ae302ee600 reformat docs
Vladimir Berezhnoy 283ef9adb7 minor fixes
Vladimir Berezhnoy 377fe5ecde add documentation
Vladimir Berezhnoy c848d3ee22 fix formatting
Vladimir Berezhnoy eb6be88fac rework root domain detection
Vladimir Berezhnoy fceb728501 fix egrep and exit
Vladimir Berezhnoy a0df46258d remove python
Vladimir Berezhnoy 57d1db58db shfmt fixes
Vladimir Berezhnoy d61b687853 remove awk
Vladimir Berezhnoy 42ab7a5d72 add newline and checks
Vladimir Berezhnoy 18cb11dcbf fix formatting
Vladimir Berezhnoy e9d5407792 fix syntax
Vladimir Berezhnoy a09b2c0074 fix syntax
Vladimir Berezhnoy a460ac021f add pdd.yandex.ru dns api
Ondrej Simek 7d64e141e4 Add dns_he - DNS API script for Hurricane Electric DNS service
... Although not yet fully Posix compatible.
Lonnie Abelbeck 42b2adc03e Add 'dns_dyn' DNS challenge validation script for Dyn Managed DNS API
dns_dyn.sh, remove empty line at end

dns_dyn.sh, remove trailing spaces at end of line

Replace 'head -n' with the '_head_n' function

Update main README.md DNS API list
RaidenII 7b32bbfc26 Fix for SC2086.
RaidenII 6963f3880d Fixes the get_root function so that when domain doesn't exist it will correctly return error.
RaidenII 333090a967 Fix README.md for DNS API.
RaidenII 3002f6dfd5 Updated README.md for Name.com API application.
RaidenII 1a504118e5 Updated DNS API support list.
RaidenII 2e602ef6b0 Added ret value verification.
RaidenII 9aed1e2d17 Argh. Double quotes.
RaidenII 63c6ed3fd0 Fixes to follow coding standards.
RaidenII 17fbfd14db Minor fixes.
RaidenII d0f5aece5f Fix SC2170.
RaidenII eeda3062e1 Fix against POSIX standard.
RaidenII 168d712dec Fixed URL of Name.com API and removed useless debug for retcode.
RaidenII e64ad5176e Added Name.com API support.
Minor change to DuckDNS API support.
RaidenII e7dff4756f Using HTTPS for DuckDNS API and added instruction.
RaidenII fa98d72f3a Added preliminary support for DuckDNS TXT record API, a free Dynamic DNS provider
neil 6c4f33910c Merge pull request from hajhatten/master
Added views to infoblox dnsapi script
Rikard Gynnerstedt 0a301cdd21 added new line at the end of the file
Rikard Gynnerstedt b73f5a4e94 missed one egrep command
Rikard Gynnerstedt 3b74ac841e save Infoblox_View to account config
neilpang eef4acd07d fix https://github.com/Neilpang/acme.sh/issues/874
Rikard Gynnerstedt b6f00ea241 changed path to env
Rikard Gynnerstedt 0bd4a4f98f formated for sh instead of bash
Rikard Gynnerstedt 0b52645bb6 added view variable to infoblox integration script
neil e85deb54e1 Merge pull request from feld/patch-1
Update README.md
Mark Felder 7eea9533e8 Update README.md
Fix usage documentation for dns_nsupdate. The NSUPDATE_KEY env needs to be a path to a file.
Jean-Tiare Le Bigot 486e77f474 Support OVH credentials scoped to a specific zone
When creating OVH API credentials, one can scope them to a specific subset of routes. Specifically, this allows to limit acme.sh to a specific zone as the zone is part of the URL. This is an important security/safety net feature.
neil d61ef6b49a gandi dns api updated.
neilpang a20707cd73 fix format
neilpang 5da1d3b73b minor fix format
nytral dff641a665 I can do it... just discovered vmdiff
nytral 47a25cc3e8 Merge github.com:justmwa/acme.sh
Conflicts:
	dnsapi/README.md
	dnsapi/dns_nsone.sh
nytral 5e3a5f627a last but not least
justmwa 9201e0a5b9 Merge branch 'dev' into master
wizard1024 cc1d3b20b6 Update dns_aws.sh to work only with public zones
neil 347dab0c14 Merge pull request from pho3nixf1re/dnsimple
include dnsimple api
Matthew Turney 5332387125
Use _post to send a DELETE request for DNSimple record removal.
Matthew Turney 2f4111a2e2
fixup shellcheck style issues
Matthew Turney 326ac485b3
link to repo for dnsimple integration support
Matthew Turney f9b419d1e4
cleanup dns in dnsimple api integration
Implement the `_rm()` method for the DNSimple integration. This also
required some changes and cleanup to DRY up the code.
Matthew Turney 2b09253961
link to contributor repo for support issues relating to the dnsimple API integration
Matthew Turney 1994c6828e
include dnsimple api
Even though DNSimple is technically covered with lexicon not all
systems can install python pip's easily. For these systems it is useful
to have pure shell script API interactions.
ka2er f5c381d5b4 less permissive permission on OVH API
restrict authorization request to OVH /domain API and not whole OVH API.
Not perfect due to some limitations in regex with *, but better security as the token don't give full access to the API.
shar0119 2310a9bbc0 Removed grep -Po
Removed usage of grep -Po.
shar0119 90c70fa5bf Merge branch 'dev' into patch-3
shar0119 a6e5876d96 Resolved conflict.
Resolved conflict.
neil 937e723036 Merge pull request from shar0119/patch-1
Create dns_dynu.sh
neil 4e2426a2b4 Merge pull request from LAV45/dev
small Fix readme [skip ci]
Aleksey Loban 020f9cd2a6 small Fix readme [skip ci]
neil cebc5bf9fc Merge pull request from LAV45/dev
Add dns_vscale.sh
Aleksey Loban dbe68684a0 Fix readme 'Use VSCALE API' [skip ci]
LAV45 27a05ff271 Add dns_vscale.sh
neil 3c07f57aad minor remove spaces
neilpang cd98951001 fix https://github.com/Neilpang/acme.sh/issues/794#issuecomment-294314606
shar0119 8470c60e06 Using _egrep_o() instead of grep -o -e
Modified code to use egrep instead of grep -o -e.
shar0119 394b1002b3 Corrected formatting error.
Part of dns_dynu_rm() impementation.
shar0119 9a61d6293d Implemented dns_dynu_rm()
Implemented dns_dynu_rm() method.
neilpang eb0fc67461 fix format
neilpang fcdf41ba29 support change account conf from env
neilpang f7217c5f26 fix format
neilpang fd77e463a1 fix aws
shar0119 6d7f6750e9 Updated author name and link to report bugs
shar0119 695482ded7 Added author name and link to report bugs
neilpang fc9649dbc4 fix aws
shar0119 afb67d375f Updated README.md (2 of 2)
neilpang 1f4e64f81d Truncated request for more than 100 domains.
shar0119 e137792efd Commented out Dynu_ClientId and Dynu_Secret
shar0119 b7b934913e Removed unnecessary spaces
shar0119 cd8fcbf9c6 Spaces in assignment removed.
shar0119 d0300d4443 Changes as requested per Commit 9c90b21
In dnsapi/dns_dynu.sh line 115:
  export _H1="Authorization: Basic $(printf "%s" "$Dynu_ClientId:$Dynu_Secret" | _base64)"
         ^-- SC2155: Declare and assign separately to avoid masking return values.
Josh Soref 7f32488b78 spelling: subdomain
Josh Soref f3c984281c spelling: specified
Josh Soref 00777a10ae spelling: security
Josh Soref 0d6ce9f977 spelling: satisfy
Josh Soref 997c517ba2 spelling: return
Josh Soref 849bed4bef spelling: requires
Josh Soref d39b108274 spelling: function
Josh Soref 39f3239682 spelling: following
Josh Soref 506f36b26d spelling: embedded
Josh Soref 9b2aa974ba spelling: changed
Josh Soref 291c97dc81 spelling: challenge
Josh Soref 3d22708f67 spelling: automatically
Josh Soref 8afd31902f spelling: application
Jason 1424e8a2de Added attribution
Jason 7dc548b4b8 MORE bs
Jason 2c37d94611 More bs
Jason b1e4a7c615 Fixed (hopefully) TravisCI errors
Jason b0561058c6 Infoblox API
Jason d039295070 Added Infoblox references
shar0119 5c78e0a462 removed source acme.sh
neil 7479706b29 Merge pull request from ClouDNS/master
Add DNS API support for ClouDNS
shar0119 7044236824 Create dns_dynu.sh
Add DNS API support for Dynu.
boyanpeychev 3e9478b58d Update README information for ClouDNS
boyanpeychev 5ffca2d138 Update cotnact details
neilpang 819d2bc560 fix for wget. fix https://github.com/Neilpang/acme.sh/issues/724#issuecomment-286761682
boyanpeychev 136d1b04b5 some additional fixes and removed awk
boyanpeychev f063dd195e some additional fixes and removed awk
boyanpeychev be972fc0b5 fixes for the comments in
boyanpeychev ac11ba3d60 Add DNS API for ClouDNS
boyanpeychev 3d8598654c Add DNS API for ClouDNS
boyanpeychev 55a5da2102 Add DNS API for ClouDNS
boyanpeychev f881d6c44f Add DNS API for ClouDNS
boyanpeychev 5df2ca3ef3 Add DNS API for ClouDNS
boyanpeychev a15f87ae39 Add DNS API for ClouDNS
boyanpeychev 0dd6377fe6 Add DNS API for ClouDNS
boyanpeychev c7257e0a3c Add DNS API for ClouDNS
boyanpeychev 3b7fbcd0c3 Add DNS API support for ClouDNS
neilpang 04683338a2 fix cloudxns api https://github.com/Neilpang/acme.sh/issues/717
thewer ac690fceaf Added DigitalOcean (native) API that requires only a read/write API key for DigitalOcean, updated 2 reads files.
nytral 1e5e03cc46 typo...
nytral d3c4cd8270 bugfix
nytral 17361df66b cleanup
nytral 7d0452c7e3 added NS1. support
csmk f589a1d245
Fix format: use double quote to prevent globbing and word splitting
csmk 9c87a5890d
Add support for Knot DNS API
The script is actually an adapted version of the `dns_nsupdate.sh` script,
as the `knsupdate` utility is quite similar to `nsupdate`.
nytral 8d53ec5353 fixed validation, added LUA while I'm at it
nytral a1e1bfc71b removed useless code
nytral 29992f54a3 delete support for dns_me
nytral 4ab6786163 Merge remote-tracking branch 'upstream/master'
neilpang 839f18d052 fix format
neilpang 177b57e1c0 fix wget content on 404 error
neilpang d24a87caf1 minor
neilpang 9683ffe13a minor fix error message
Frederic Crozat fab2d9dc6a add API for Gandi LiveDNS ()
* add API for Gandi LiveDNS

* ensure Gandi API key is saved for renewing certificate.

* gandi_livedns: use PUT instead of POST for creating DNS record

* gandi_livedns: fix formatting

* dns_gandi_livedns: fix shellcheck errors
Stefan Seidel abf4278d09 resolve conflicts
seidler2547 2b2b65fe18 Declare and assign separately to avoid masking return values
Stefan Seidel 3d6a125bdc add documentation
seidler2547 9efd40a366 use export for headers
seidler2547 383fa8401d Remove stray characater
fixes issue where the first listed domain would not work
seidler2547 bf8ffade29 replace head -1, add link to GitHub
seidler2547 1633d14547 forgot dollar sign
seidler2547 e55605dbe9 remove _all_ mktemp
seidler2547 cdec38ba12 return error if any removal failed
seidler2547 1cb6e9e7d0 remove cookiejar file
d'oh
Stefan Seidel d1d2f6f451 avoid temp file for domain list
Stefan Seidel 743f821f1e improve error message on failed authentication
Stefan Seidel b95a99e0c2 remove cookiejar temp file
Stefan Seidel 3ebbeb103c old habits
Stefan Seidel 0d4035e996 remove fgrep, escape regex chars instead
Stefan Seidel 88ed5e506a fix whitespace and UUOC
Stefan Seidel 76a3371b40 remove non-POSIX sed -r and use built-in functions
Stefan Seidel 7b2fa1edb4 add API for www.do.de/www.resellerinterface.de
neil e1c42eb6cc Merge pull request from noplanman/cyon_dns_api
Cyon.ch DNS API
Armando Lüscher a6d2e3a1e6
Suppress shellcheck warnings.
neilpang e6e85b0c55 secure debug message
neilpang db50462920 minor use interactive _sleep
Armando Lüscher 3e1418d662
Use gloo item key for environment change, to support different account types.
(this isn't working 100% yet, still looking for a solution)
Armando Lüscher 884f70fb39
Remove square brackets from ranges.
Export curl header variables.
Armando Lüscher 9499a1142b
Remove custom URL encoding and use library's implementation.
Armando Lüscher 6e8dcdce78
Satisfy shellcheck.
Armando Lüscher ce9fae82bd
Update cookie retrieval using _egrep_o (thanks @Neilpang)
Armando Lüscher afa3fc8bf9
Adapt to use general naming rule for account variables.
Armando Lüscher 09eccf6fc0
Use more flexible version of uppercase to lowercase conversion.
Armando Lüscher edfefb6763
Add usage instructions and repo link to post issues.
Armando Lüscher 98b3dcbf37
Prefix all private functions with `_cyon`.
Satisfy shellcheck.
Armando Lüscher 2698ef6c5f
Return instead of exit.
Clear OTP secret if environment variable is set to empty. This is for when the 2FA is disabled.
Rename `_is_idn` function to `_is_idn_cyon`.
Remove usage of curl (except for URL encoding of data).
Instead of cleaning up the cookie jar, get rid of it completely and logout of cyon instead.
Armando Lüscher 46b2ee3bae
Replace all echos with printf.
Armando Lüscher e7ee3a7dd5
Remove jq completely to not require it as a dependency.
Armando Lüscher 0085e6f83b
Don't use jq to fetch list of DNS entries to be deleted.
Armando Lüscher c90fa3bcfc
Fix problems found by travis.
Armando Lüscher 0ec9b9823f
Add DNS API for cyon.ch
neil c9d7daab70 fix https://github.com/Neilpang/acme.sh/issues/593
neilpang b4325026b1 exe
nytral e82ea94bb6 Merge remote-tracking branch 'upstream/master'
David Kerr 09ed421948 Merge remote-tracking branch 'upstream/master' into FreeDNS
David Kerr 87f5ec5be5 Add Accept-Language:en-US to HTTP header as precaution against future multi-lingual FreeDNS pages.
David Kerr f78b656f5f Add error message if fails to add TXT record for missing security code (probably a FreeDNS public domain)
David Kerr e6b940e247 Minor edits to FreeDNS documentation
David Kerr 50a9680f17 Travis error... remove blank line at end of file.
David Kerr 40e6ba1100 fix heading level to match others.
David Kerr 0aed065a75 Updates to README.md
neilpang 1476a9ecf1 fix format
David Kerr 600a235140 Add FreeDNS plugin
neil aec8307417 Merge pull request from trancee/dev
Added support for Linode DNS API.
neilpang d78ba322bf fix update
neilpang ab5c1b0a3a minor
neilpang 53fa16d39f minor
neilpang 05cf405cb5 minor
neilpang 5d833336d3 minor
neilpang bb6326f4d4 fix for solaris
Philipp Grosswiler c070407ab2 Fixed Travis CI complaining about missing newline at end of file.
neilpang 1c22c2f76a fix for solaris
neilpang 646c0bfcb9 fix for solaris
neilpang bcf96608d1 fix for solaris
Philipp Grosswiler dd17ac5045 Added instructions on how to get the Linode API key.
Philipp Grosswiler 59182dbc97 Removed Linode CLI dependency.
neilpang 542d7977db add new _url_encode
Philipp Grosswiler 38f2334360 Added support for Linode DNS API.
Bastian Bittorf 3ca93f4a4c shellcheck: fix several occurences of SC2034
message:
SC2034: $VARNAME appears unused. Verify it or export it.

most of these are related to the style:
we generate global vars, which are used in other functions.

the var "lexical_url" was really unused (left it as comment)

the travis-check now does not need anymore special flags.

Signed-off-by: Bastian Bittorf <bb@npl.de>
Bastian Bittorf 3b67cf4378 dnsapi/dns_dp.sh: shellcheck: fix 1 occurence of SC2126
shellcheck message was:
"Consider using grep -c instead of grep | wc"
neilpang 671a699472 minor, fix shellcheck warning
Bastian Bittorf 800f02ba38 dnsapi/dns_lexicon.sh: shellcheck: fix 4 occurences of SC2021:
"Don't use [] around ranges in tr, it replaces literal square brackets."

this introduces another warning:
"Use '[:lower:]' to support accents and foreign alphabets."

This is more a style thingy because we really want to only catch A-Z.
work around this by using a shellcheck-directive and a comment
that the [:lower:] will not work with e.g. busybox-ash.

if we later really want to use [:lower:], we should use 'sed' for that.
Kevin Kaland 3cf85634eb Trim potential closing curly brace.
Fixes GH-517.
Karsten Sperling 5415381cf4 Add support for AWS_SESSION_TOKEN and fix bug when multiple hosted zones exist
Paul Koppen 7b4be7be40 Remove spaces from blank lines.
Paul Koppen b90917a529 Improve legibility.
Paul Koppen 180f05f6f0 Add instructions for the Alwaysdata API.
Paul Koppen 831b95f13a Merge suggested improvements.
* Use `_head_n`.
* Add link to GitHub repo for bug reporting.
Paul Koppen 331b599a81 Use _post for DELETE and switch to JSON API (Alwaysdata default).
Paul Koppen e5079b9dad Add Alwaysdata DNS API.
neilpang 15af89d51c fix https://github.com/Neilpang/acme.sh/issues/490
neilpang 8c71bd57e7 fix https://github.com/Neilpang/acme.sh/issues/491
klemens 329174b6d9 spelling fixes
neilpang 2728170c01 add debug info
neilpang 7d1c5fca0b fix for solaris
neilpang 39d1eeda23 fix for solaris
neilpang 122cc48c29 minor
neilpang c7c57cfa0e fix for solaris
neilpang dfbc244b00 support aws remove
neilpang f1f3074306 fix format
neilpang f162ad193f support dnspod remove
neilpang c0d0100ca8 fix format
neilpang 21f201e371 support cloudflare rm function
neilpang df62150b5a Merge branch 'dev' of https://github.com/Neilpang/acme.sh into dev
neilpang eea52a5fa6 update api template
Marcello Barnaba c12be766e9 Fix Route53 API consumer
Ignoring the Chthlulu argument 😃, Route53 returns its XML all on one line, making not possible to grep the hosted zone record with egrep/sed.

This change splits the XML in multiple lines, so that parsing can succeed.
kookxiang 8379f015d7
Finish dns_cx_rm() method
neilpang a62706678e fix for solaris
neilpang e4468562d2 fix cx
neilpang 3747b7d930 fix cx
neilpang 5be3f22d06 fix issue
neil c572ce946b Dev ()
* do not use script home

* fix format

* fix issue when there is no one records in the domain.
neilpang d69f0289ca fix issue when there is no one records in the domain.
neil 58bb94d7c7 Update README.md
sjau 5eed02f7e9 Changing shebang back to sh
sjau 983f1f28ca Fixed wrong zone getting JSON and added lots of debug info
sjau 192ede5e64 Added ISPConfig DNS API
neilpang dbd94d047b fix for aliyun api
baiyangliu be39ab32d1 Add DNS API support for aliyun ()
* Add DNS API support for aliyun

* Update README.md

* format

* format

* format

* format...

* format...

* format

* format

* fix bug

* fix bug

* code format

* code format

* fix bug

* just ok...

* fix bug

* fix bug

* fix bug

* change "echo" to "printf"

* fix bug

* code format

* fix bug."head -c" in function _ali_nonce not supported by solaris

* fix bug."head -c" in function _ali_nonce not supported by solaris

* format

* fix bug._ali_nonce not work on solaris

* fix bug. _ali_nonce not work on solaris

* fix bug. _ali_nonce not work on solaris

* add aliyun.com to README.md
neilpang 5b771039fc Support AWS Route53 api
neilpang 2f1bc5864f fix format
neilpang 16d79ebaac fix format
neilpang e009ec8b93 Support AWS Route53 api
neilpang cd79b0343a Merge branch 'dev' of https://github.com/Neilpang/acme.sh into dev
neilpang 88a8d7d901 Merge branch 'dev' of https://github.com/Neilpang/acme.sh into dev
magna-z d5c00071d3 Add functional in method dns_pdns_rm()
neilpang ab45b7783f fix format
neilpang 4a56b2406b fix check email
neil 40a3ae04b6 Merge pull request from Neilpang/dev
Dev
neilpang ac26f84170 fix shfmt
neilpang fa574fe833 fix shfmt
Armando Lüscher d20831e41a
Update DNS API readme
neil 9882f3429a Update README.md
nytral a9b15f1c36 Merge remote-tracking branch 'upstream/master'
Philippe Kueck ce38ecb966
merge with upstream
Philippe Kueck 13ffa17048
add documentation for dns_nsupdate
Philippe Kueck 243593cdaa
fix warnings and remove unused ${tmp} variable
neilpang a8c6111197 fix shellcheck warnings
neilpang 3de8570022 fix shellcheck warnings.
neilpang a0311b0134 fix for shellcheck warnings
neilpang 422e5026d6 fix shellcheck warnings
neilpang 797cbb9b20 fix shellcheck warnings
neilpang e440223b40 fix shellcheck warnings
neilpang 69925ce823 fix shellcheck warnings.
neilpang e9f9f515bd fix shellcheck warnings.
neilpang c7b8f223ee fix for solaris tr
neilpang a0636d5a87 fix shellcheck warnings.
neilpang c7b16249b8 fix shellcheck warnings
nytral 764963e986 sync upstream
neilpang dec90f7e5e format dns_me api
nytral 2ea5b283a8 _hmac use and generic date
nytral eb23549cd6 s/bash/sh/
nytral cd90062850 better bugfix
nytral 3ec72fcee9 bugfix
nytral b9091e14b3 adding DNSMadeEasy API
root 439580b91b apply shfmt to dns_dp api.
neilpang 4c2a384159 Add shfmt to format source code
nytral 22b83d7630 _hmac use and generic date
nytral 0b5bff01e1 s/bash/sh/
nytral 4fe7b6cd65 better bugfix
nytral 49e1f7d8bf bugfix
nytral 803fb243bf adding DNSMadeEasy API
nytral f58e83ee87 READMEs edit
nytral 1d9f76e2c8 working email contact added
nytral 56e0269e5e email contact added
nytral 662df85e54 s/bash/sh/
nytral 2be4a5e486 use _base64
nytral a43d697225 cleanup
nytral f06c1e6c78 luadns bash script
Philippe Kueck 54d61bdc4a
- get rid of bash-only syntax like ${foo:-bar}
- use sh instead of bash
- remove redundant functions _info, _err, _debug and _debug2
- get rid of mktemp, pipe commands directly to nsupdate
Philippe Kueck 0fb206fe15
add nsupdate script for dns-01