Skip to content

Instantly share code, notes, and snippets.

@oliverbenns
Created January 20, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oliverbenns/0740082a4590a7c733e24e6bf65b9774 to your computer and use it in GitHub Desktop.
Save oliverbenns/0740082a4590a7c733e24e6bf65b9774 to your computer and use it in GitHub Desktop.
Domain Check Availability (bash script)
# Bash domain checker
# Usage: sh script.sh [domain name]
# If it says "No match for [domain]", it is available.
tlds=("com" "net" "co" "io" "co.uk")
for tld in "${tlds[@]}"
do
whois "$1.$tld" | grep "No match for";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment