Updated PUT request to hold only fqdn domain name values#

pull/6178/head
peterv99 2 months ago
parent 07220a324d
commit 35f3b7088d

@ -39,7 +39,7 @@ dns_mijn_host_add() {
_debug "Add TXT record"
# Build the payload for the API
data="{\"type\":\"TXT\",\"name\":\"$_sub_domain\",\"value\":\"$txtvalue\",\"ttl\":120}"
data="{\"type\":\"TXT\",\"name\":\"$fulldomain.\",\"value\":\"$txtvalue\",\"ttl\":120}"
export _H1="API-Key: $MIJN_HOST_API_KEY"
export _H2="Content-Type: application/json"
@ -56,7 +56,7 @@ dns_mijn_host_add() {
# Updating the records
updated_records=$(echo "$records" | sed -E "s/\]( *$)/,$data\]/")
_debug "Updated records" "$updatedrecords"
_debug "Updated records" "$updated_records"
# data
data="{\"records\": $updated_records}"

Loading…
Cancel
Save