Created
June 22, 2026 13:54
-
-
Save audiodude/4e0d106cb2f0e018b1fb6d6cd0a4c021 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| domaincheck() { | |
| local code | |
| code=$(curl -sL -o /dev/null -w '%{http_code}' "https://rdap.org/domain/$1") | |
| case "$code" in | |
| 404) echo "$1: available" ;; | |
| 200) echo "$1: taken" ;; | |
| *) echo "$1: unclear (HTTP $code)" ;; | |
| esac | |
| } |
This file contains hidden or 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
| tmoney@tmoney-linux:~/code/vibes$ domaincheck travisbriggs.com | |
| travisbriggs.com: taken | |
| tmoney@tmoney-linux:~/code/vibes$ domaincheck fooboarasdf.com | |
| fooboarasdf.com: available |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment