Whois

Home: www.packetnexus.com

#!/bin/bash

domain=packetnexus.com
email=http://www.packetnexus.com

echo -n "Enter the domain to lookup [$domain]: "
read TMP
if [ $TMP ]; then
    domain=$TMP
fi

echo -n "Enter the email address to send results to [$email]: "
read TMP
if [ $TMP ]; then
    email=$TMP
fi

do
whois $domain|mail -s "$domain record" $email
done


Back to the Index