Web Hosting Talk







View Full Version : TIP: Whois Lookup from shell


(SH)Saeed
12-27-2000, 01:18 AM
Hi,

I find this little tool very usefull and thought I share with the rest of you.

With this small perl script you can do whois lookup directly from your shell account. It also has web interface for those that would want that.

Here´s a step by step guide:

1) Upload http://bw.org/whois/dist/whois-current.tgz to your box.
2) Telnet in and go to the directory where the file is.
3) do "gzip -d whois-current.tgz".
4) do "tar -xvf whois-current.tar".

Now there is a directory called whois-2.8 with some files in it. You can now simply from that directory do "./whois domain.com", or if you want to be able to access this from any directory do the following steps.

5) su as root.
6) do "cp whois /usr/bin/" (thinking you´re in the whois directory).
7) do "cd ..".
8) do "rm -rf whois-2.8" to delete the whois directory

That´s it! Now you can type "whois --help" for help or "whois domain.com" to get the domain whois lookup.

Homepage: http://bw.org/whois/

Let me know if you like this. If so I can post other stuff I come across that might be usefull.

Hope you enjoy this,
Saeed


[Edited by zolbian on 12-27-2000 at 12:20 AM]

teck
12-27-2000, 01:36 AM
i think this was great! i would suggest someone creating a webpage with a how-to for everyone. everything from mysql to installing whois. no comments, no questions, just a detailed how-to with step by step instructions like you just did.

(SH)Saeed
12-27-2000, 01:50 AM
I'm in the process of starting up a technology company and as you all know I just begun to learn about server administration. But if I get the time I will do a section and put stuff like this with you all.

Saeed

Added: If you wonder why I edit all my posts, well.. It's 7am and I can't spell! :rolleyes: