Skip to content

Commit

Permalink
Fixed TXT record name in dns_desec.sh
Browse files Browse the repository at this point in the history
Fix for the FQDN being truncated in the TXT record name being generated for the DNS-01 challenge at DESEC.io. See #2180 (comment) for details.
  • Loading branch information
JNail authored Aug 4, 2024
1 parent 0f61e9c commit 4258403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_desec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dns_desec_add() {
fi
_debug txtvalues "$txtvalues"
_info "Adding record"
body="[{\"subname\":\"$_sub_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":3600}]"
body="[{\"subname\":\"$_sub_domain\":\"$_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":3600}]"

if _desec_rest PUT "$REST_API/$_domain/rrsets/" "$body"; then
if _contains "$response" "$txtvalue"; then
Expand Down

0 comments on commit 4258403

Please sign in to comment.