Whois script


 

Home Up Virus-Worms Search Contact Us Top Page 1 Top Page 1

Home
Up
Prompt DOS
Batch Commands
CmdLine Arguments
NT syntax
Win2k Reference
XP Commands
Whois script

If you have your own web site with a registered name, you should be familiar with the WHOIS utility. You can search by web address, NIC handle, or ip address. whois is available as a commandline utility in unix. There are also web versions:

Although NT does not come with whois, you can create your own version using a batch file:

contents of WHOIS.cmd:

@echo off
start http://www.networksolutions.com/cgi-bin/mcwho/whois?STRING=%1
 

-or-

@echo off
start http://www.whois.net/search.cgi2?str=%1
 

The first version uses the whois lookup from Networksolutions whereas the second version uses the whois lookup from Whois.net Copy the batch file to somewhere in your path, for example, the %systemroot%\system32 folder. Because I have a lot of these small scripts and batch files, I created a %systemroot%\bin folder and placed it in the path. To lookup the whois info for microsoft.com, use the commandline: