Skip to content

Commit

Permalink
Update GetRecord to use case-insensitive DNS record lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
as-kholin committed Sep 18, 2024
1 parent bd7eb6b commit cb256b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_omglol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ omglol_getRecords() {
_debug2 " Received Payload:" "$payload"

# Get all records of the right name
recordID=$(echo "$payload" | grep "$dnsName.$address" -B2 -A1)
recordID=$(echo "$payload" | grep -i "$dnsName.$address" -B2 -A1)

# Now find the one with the right value, and caputre its ID line
recordID=$(echo "$recordID" | grep "$txtValue" -B3 | grep "id")
Expand Down

0 comments on commit cb256b1

Please sign in to comment.