mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-11 23:02:44 +00:00
Add support for zeit dns
TODO: Use sed/awk for domain parsing (I am bad at it) Write removal function Use rest api instead of now cli
This commit is contained in:
parent
55e862a4a4
commit
829ce75856
19
dnsapi/dns_zeit.sh
Normal file
19
dnsapi/dns_zeit.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
######## Public functions #####################
|
||||||
|
|
||||||
|
#Usage: add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
|
||||||
|
dns_zeit_add() {
|
||||||
|
fulldomain=$1
|
||||||
|
txtvalue=$2
|
||||||
|
subdomain=$(echo $fulldomain | node -e "process.stdin.on('data',e=>console.log(e.toString().split('.').slice(0,-2).join('.')))")
|
||||||
|
domain=$(echo $fulldomain | node -e "process.stdin.on('data',e=>console.log(e.toString().split('.').slice(-2).join('.').trim()))")
|
||||||
|
now dns add $domain $subdomain TXT $txtvalue
|
||||||
|
}
|
||||||
|
|
||||||
|
#fulldomain txtvalue
|
||||||
|
dns_zeit_rm() {
|
||||||
|
fulldomain=$1
|
||||||
|
txtvalue=$2
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user