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

Posted via web from Linux fanatic