Skip to content

Commit

Permalink
transform record name to lower case when searching for TXT record
Browse files Browse the repository at this point in the history
  • Loading branch information
zak905 committed Apr 30, 2024
1 parent 057c00f commit 44d02b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dnsapi/dns_ionos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ _ionos_cloud_get_record() {
txtrecord=$2
fulldomain=$3
_record_name=$(printf "%s" "$fulldomain" | cut -d . -f 1)
# this is to transform record name to lower case
# IONOS Cloud API transforms all record names to lower case
_record_name=${_record_name@L}

_info "grepping with the following args: zone_id=$zone_id txtrecord=$txtrecord fulldomain=$fulldomain _record_name=$_record_name"

Expand Down

0 comments on commit 44d02b9

Please sign in to comment.