You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. #!/usr/bin/env sh
  2. # shellcheck disable=SC2034
  3. dns_technitum_info='Technitum DNS Server
  4. Domains: example.com
  5. Site: github.com/acmesh-official/acme.sh/wiki/DNS-API-Dev-Guide
  6. Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_duckdns
  7. Options:
  8. MYAPI_Token API Token. Get API Token from https://example.com/api/. Optional.
  9. Issues: github.com/acmesh-official/acme.sh
  10. Author: Neil Pang <neilgit@neilpang.com>
  11. '
  12. #This file name is "dns_myapi.sh"
  13. #So, here must be a method dns_myapi_add()
  14. #Which will be called by acme.sh to add the txt record to your api system.
  15. #returns 0 means success, otherwise error.
  16. ######## Public functions #####################
  17. # Please Read this guide first: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Dev-Guide
  18. #Usage: dns_myapi_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
  19. dns_technitum_add() {
  20. fulldomain=$1
  21. txtvalue=$2
  22. _info "Using technitum"
  23. _debug fulldomain "$fulldomain"
  24. _debug txtvalue "$txtvalue"
  25. _err "Not implemented!"
  26. return 1
  27. }
  28. #Usage: fulldomain txtvalue
  29. #Remove the txt record after validation.
  30. dns_technitum_rm() {
  31. fulldomain=$1
  32. txtvalue=$2
  33. _info "Using technitum"
  34. _debug fulldomain "$fulldomain"
  35. _debug txtvalue "$txtvalue"
  36. _err "Not implemented!"
  37. return 1
  38. }
  39. #################### Private functions below ##################################
  40. dns_technitum_add "_acme-challenge.test.07q.de" "abcd"