From 11e13e1c2ab75db258f716ad5e4c1b4e73a4536d Mon Sep 17 00:00:00 2001 From: Marvo2011 Date: Thu, 8 Sep 2022 06:38:02 +0200 Subject: [PATCH] Updated dnsapi (markdown) --- dnsapi.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/dnsapi.md b/dnsapi.md index 842c21e..93d022f 100644 --- a/dnsapi.md +++ b/dnsapi.md @@ -3012,6 +3012,25 @@ The `BUNNY_API_KEY` will be saved in `~/.acme.sh/account.conf` and will be reuse If you find any bugs with the Bunny DNS API integration, please report them here: https://github.com/Neilpang/acme.sh/issues/4296 +## 151. Use Selfhost DNS API + +- create a new TXT record for a subdomainname with the needed prefix e.g. "_acme-challenge.example.com" (default) or "alias.example.com" (dns alias mode) + - for wildcard subdomains add a second TXT record for the identical subdomainname +- edit the TXT record and note the ID in (...) behind the subdomainname +- export each subdomainname (including the prefix) and the corresponding record IDs in SELFHOSTDNS_MAP like "subdomainname:RID1:RID2" + - at least one RID must be set, up to two are supported for wildcard subdomains + - each entry must be seperated by a space +- export username and password in SELFHOSTDNS_USERNAME and SELFHOSTDNS_PASSWORD + +_Note: For `username` you have to use your account / customer number. You can find them in any invoice or on the right top of the selfhost dashboard._ + +``` +export SELFHOSTDNS_USERNAME="myname" +export SELFHOSTDNS_PASSWORD="mypass" +export SELFHOSTDNS_MAP="_acme-challenge.example.com:12345:98765 alias.example.com:11111" + +acme.sh --issue -d example.com --dns dns_selfhost +``` # ################## # Use custom API