Completed: Domain name tools. Generator & Checker

I'm fairly new to bash scripts, and all things unix in general. But I was in desperate need of this script, so I took matters into my own hands and built it!

The first script uses a password generator that creates 4 letter domain names and outputs only the ones that are available. Currently its at about 90% accuracy because it detects domains that are in auction. But it works for the most part. I'm also sharing some other scripts in the same category I made.

DOMAIN NAME GENERATOR & CHECKER:
(outputs only available domains)
-requires install of pwgen package

#!/bin/bash
clear
echo "Generating domains... Like a boss!";
for domain in $(pwgen -1A0B 4 10000); 
do
host $domain.com | egrep -q '^Host|^NXDOMAIN|^Not fo|not found|^No Data Fou|has not been regi|No entri'
if [ $? -eq 0 ]; then
echo "$domain.net"
else
tput sgr0
fi
done

DOMAIN NAME CHECKER FROM WORDLIST:
(example wordlist: vertical list, one word per line without .com)

#!/bin/bash
clear
echo "Verify your administrator so program will work."
sudo user
clear
echo "1) Drag word list to this window..."
echo "2) Then press enter to start!"
read file
clear
echo "Checking domains... Like a boss!";
echo "This is 90% accurate, some domains show as available when their not."
while read line 
do
host $line.com | egrep -q '^Host|^NXDOMAIN|^Not fo|not found|^No Data Fou|has not been regi|No entri'
if [ $? -eq 0 ]; then
echo "$line.com : Available"
else
echo "$line.com :"
fi
done < "$file"