Sponsored Content
Top Forums Shell Programming and Scripting Completed: Domain name tools. Generator & Checker Post 302748719 by Files on Wednesday 26th of December 2012 11:09:31 PM
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..
 

3 More Discussions You Might Find Interesting

1. 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

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. 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
SYSTEMD-RC-LOCAL-GENERATOR(8)				    systemd-rc-local-generator				     SYSTEMD-RC-LOCAL-GENERATOR(8)

NAME
systemd-rc-local-generator - Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown SYNOPSIS
/lib/systemd/system-generators/systemd-rc-local-generator DESCRIPTION
systemd-rc-local-generator is a generator that checks whether /etc/rc.local exists and is executable, and if it is pulls the rc-local.service unit into the boot process. This unit is responsible for running this script during late boot. Note that the script will be run with slightly different semantics than the original System V version, which was run "last" in the boot process, which is a concept that does not translate to systemd. The script is run after network.target, but in parallel with most other regular system services. systemd-rc-local-generator also checks whether /usr/sbin/halt.local exists and is executable, and if it is pulls the halt-local.service unit into the shutdown process. This unit is responsible for running this script during later shutdown. Support for both /etc/rc.local and /usr/sbin/halt.local is provided for compatibility with specific System V systems only. However, it is strongly recommended to avoid making use of these scripts today, and instead provide proper unit files with appropriate dependencies for any scripts to run during the boot or shutdown processes. systemd-rc-local-generator implements systemd.generator(7). SEE ALSO
systemd(1), systemctl(1) systemd 237 SYSTEMD-RC-LOCAL-GENERATOR(8)
All times are GMT -4. The time now is 01:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy