How To Protect Your Domain Name Idea
A lot of websites offer the possibility to check for the availability of domain names, but do you trust them? did you know that you can check domains directly from your terminal?
~ ./dn-check.sh "google"
google.com: "❌ not available"
google.org: "❌ not available"
google.fr: "❌ not available"
~ ./dn-check.sh "abcnews"
abcnews.com: "❌ not available"
abcnews.org: "❌ not available"
abcnews.fr : "✅ available"
There are a lot of websites offering the possibility to check for domain name availability, but are you sure that they won’t use your search for unwanted purposes? can’t they just buy your domain name idea and sell it for a higher price? For these reasons you should consider another way to check the availability of a domain name, fortunately, there is a way to do that straight from the Terminal of your Mac / Linux or Windows.
How To check for Domain Name Availability from the Terminal
- Create a file dn-check.sh with the following content :
#!/bin/bash
if [ "$#" == "0" ];
then
echo "You need tu supply at least one argument!"
exit 1
fi
DOMAINS=( '.com' '.org' '.fr')
ELEMENTS=${#DOMAINS[@]}
while (( "$#" ));
do
for (( i=0;i<$ELEMENTS;i++));
do
whois $1${DOMAINS[${i}]} | egrep -q '^No match|^NOT FOUND|^Not fo|AVAILABLE|^No Data Fou|has not been regi|No entri'
if [ $? -eq 0 ];
then
tput setaf 2;
echo "$1${DOMAINS[${i}]} : available"
else
tput setaf 1;
echo "$1${DOMAINS[${i}]} : not available"
fi
tput setaf 0;
done
shift
done
- Make the script executable :
chmod +x dn-check.sh
- Execute the script :
./dn-check.sh google
Domain Name Availability Script in Action
This script will check in the .com / .org / .fr domains, you can edit line 9 (DOMAINS Array) in order to check for other domains as well.
Final Thoughts,
Domain names are critical choices for the success of any company, that’s why some domain names cost many millions of $, if you find an interesting name for your next business you need to make sure to protect it and buy it fast, for this reason, make sure not to share it with any third party service before acquiring it!
If you find this article interesting, make sure to hit the 👏 button below.