TXT record ADD test successfully

This commit is contained in:
Lifeboy 2024-08-22 14:39:09 +02:00
parent 42e78f9a3e
commit fa3591f4f2

View File

@ -16,11 +16,11 @@ Author: Darven Dissek, William Gertz
#Usage: dns_miab_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs" #Usage: dns_miab_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns_miab_add() { dns_miab_add() {
fulldomain=$1 fulldomain=$1
txtvalue=$2 txtvalue="value="$2"&ttl=300"
_info "Using miab challange add"
_debug fulldomain "$fulldomain"
# Added to accomodate the new TXT record format used by the API to include value= and ttl= # Added to accomodate the new TXT record format used by the API to include value= and ttl=
_debug txtvalue "value="+="$txtvalue"+="&ttl=300" _info "Using miab challenge add"
_debug fulldomain "$fulldomain"
_debug txtvalue $txtvalue
#retrieve MIAB environemt vars #retrieve MIAB environemt vars
if ! _retrieve_miab_env; then if ! _retrieve_miab_env; then
@ -56,7 +56,7 @@ dns_miab_rm() {
fulldomain=$1 fulldomain=$1
txtvalue=$2 txtvalue=$2
_info "Using miab challage delete" _info "Using miab challenge delete"
_debug fulldomain "$fulldomain" _debug fulldomain "$fulldomain"
_debug txtvalue "$txtvalue" _debug txtvalue "$txtvalue"