Skip to content

Commit

Permalink
Update dns_miab.sh
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lifeboy committed Aug 21, 2024
1 parent 1d59d43 commit 435bb3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnsapi/dns_miab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ dns_miab_add() {
txtvalue=$2
_info "Using miab challange add"
_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
if ! _retrieve_miab_env; then
Expand Down

0 comments on commit 435bb3f

Please sign in to comment.