SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows NT/2000/2003
User Name

"whois" equivalent in CMD?

Thread Tools Search this Thread Rating: Thread Rating: 21 votes, 2.76 average. Display Modes

Old 02-08-2003, 03:10 PM
mikeshn Offline
Registered User
Join Date: Aug 2002
Posts: 11
"whois" equivalent in CMD?

I use "whois" command to check whois. What similar program can be used in CMD (Command Program)?

Reply With Quote

Old 02-10-2003, 10:22 PM
dumdum's Avatar
dumdum Offline
Super Duper Member
Join Date: Dec 2002
Location: P.A. Saskatchewan, Canada
Posts: 231

dns [-cmd { ... }] [-flush] [-list] nick [nick1 nick2]

Will whois a nick and then provide a reverse DNS ip lookup. A -cmd { } structure can be used todo something with that particular result. -flush will clear the whois buffer in case of a problem. -list will display pending whois requests.

/dns buddhax
/dns -cmd { echo $* } buddhax


nslookup [-cmd { ... }] host1 [[host2] [host3] ...]


whois [<nickname>]

The whois command is used to retrieve moderately detailed information about the nickname(s) specified. whois may be used on multiple nicknames at once, provided they are delimited with commas. If a server name is specified, that server will be queried instead of the client's current server. If no arguments are given, the whois will be performed on the client itself.

To get information on users JoeBob, ToeJam, and JuneBug:
/whois joebob,toejam,junebug

This command will attempt to lookup a hostname, ip. As well you can lookup multiple hosts or ips. A alias or cmd may be specified which is then performed on each. If a failure occurs, then the failing name is returned, whereas on success, the name and the associated ip's are returned. There is also a hook which can be used only upon those nslookups without a -cmd.

To nslookup a ip:
/nslookup ip

To nslookup a ip and perform a command:
/nslookup -cmd { echo $G $* } hostname

Good enough?
[color=green]Me Dumdum!!![/color]
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 06:58 AM.

Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.