SoftwareTipsandTricks Forum

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


"whois" equivalent in CMD?

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 16 votes, 3.06 average. Display Modes

  #1  
Old 02-08-2003, 04: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)?

Thanks
M.S
Reply With Quote

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

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

Description:
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.

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


nslookup

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

whois

Synopsis:
whois [<nickname>]

Description:
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.

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


Description:
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.

Examples:
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
Reply




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 01:37 AM.


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