Update dns_miab.sh

The MIAB API requires that the txtvlaue to a TXT record includes the "value=" and "ttl=" components as part of the TXT record when adding a new record.
This commit is contained in:
Roland Giesler 2024-08-21 12:13:04 +02:00 committed by GitHub
parent 1d59d43286
commit 435bb3f1d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,8 @@ dns_miab_add() {
txtvalue=$2 txtvalue=$2
_info "Using miab challange add" _info "Using miab challange add"
_debug fulldomain "$fulldomain" _debug fulldomain "$fulldomain"
_debug txtvalue "$txtvalue" # Added to accomodate the new TXT record format used by the API
_debug txtvalue "value="+="$txtvalue"+"&ttl=300"
#retrieve MIAB environemt vars #retrieve MIAB environemt vars
if ! _retrieve_miab_env; then if ! _retrieve_miab_env; then