Created
May 4, 2023 21:11
-
-
Save stonking/172c07e69fcd45c8181a9fbca430775c to your computer and use it in GitHub Desktop.
Bluesky domain handle check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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