Skip to content

Instantly share code, notes, and snippets.

@stonking
Created May 4, 2023 21:11
Show Gist options
  • Save stonking/172c07e69fcd45c8181a9fbca430775c to your computer and use it in GitHub Desktop.
Save stonking/172c07e69fcd45c8181a9fbca430775c to your computer and use it in GitHub Desktop.
Bluesky domain handle check
#!/bin/bash
# Adam Sculthorpe https://twitter.com/AdamSculthorpe
# Check your fave domains for bluesky handle DIDs
domains=(
amazon.com
apple.com
google.com
microsoft.com
figma.com
# add any domains here
)
# loop through each domain and check for _atproto TXT records
for domain in "${domains[@]}"
do
txt=$(dig +short TXT _atproto.$domain 2>/dev/null)
if [[ $txt == *"did"* ]]; then
echo "$domain: $txt"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment