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!" )
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
1 comments:
No way, I can't believe that. Great article BTW.
Anne Cole
who is visiting
Post a Comment