Completed: Domain name tools. Generator & Checker


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Completed: Domain name tools. Generator & Checker
# 1  
Old 12-27-2012
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
Code:
#!/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)
Code:
#!/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"


Last edited by Files; 12-27-2012 at 01:32 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Linux

Domain registrars & DNS servers

I have read many tutorials on bind and i understand the A,MX, CNAME records. Internally, on a LAN we can install bind and create all these records and we can tell all PC and servers to use this bind as DNS server.that's fine. On the Internet, when we have purchased a valid domain like... (5 Replies)
Discussion started by: coolatt
5 Replies

2. Shell Programming and Scripting

SIMPLE HTTP PROXY SERVER CHECKER (Completed)

Simple Http Proxy Server Checker Script with curl mirror proxies-scripts/proxc at master * Anoncheg1/proxies-scripts * GitHub output in terminal HTTP, HTTP Connect (HTTPS not supported) command line: proxc filename where filename is file like 119.110.69.185:8080 119.235.16.41:8080... (4 Replies)
Discussion started by: 654321
4 Replies

3. Programming

Tools for writing a simple syntax checker?

I'm trying to write a small utility for syntax checking. I've tried using Flex/Bison, but these seem too advanced for my task. A simpler tool would be appreciated. (1 Reply)
Discussion started by: Ilja
1 Replies
Login or Register to Ask a Question