Lookup details of an IP or Domain (whois lookup) graphically

By using the following script you can easily lookup for an ip or domain using zenity and shell script. (sorry Windows folks, i just hate you).

 

#!/bin/bash
# Get the domain name
Z="/usr/bin/zenity"
O="/tmp/whois.o.$$"
domain=$(${Z} --title  "Domain Information" \
                --entry --text "Domain name who's information you seek!" )

if [ $? -eq 0 ]
then
    whois $domain  | tee >${O}
 
  # Display back output
  ${Z} --width=800 --height=600  \
               --title "Whois info for $domain" \
               --text-info --filename="${O}"
else
  ${Z} --error \
               --text="No input provided"
fi

 

Enjoy. :D

Posted via web from Linux fanatic

1 comments:

Unknown said...

No way, I can't believe that. Great article BTW.

Anne Cole

who is visiting

Copyright © 2008 - nepabuntu - is proudly powered by Blogger
Smashing Magazine - Design Disease - Blog and Web - Dilectio Blogger Template