LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 06-16-2006, 04:44 PM   #1
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Rep: Reputation: 31
Windows equivalents for "tcpdump" or "whois"?


We all used those 2 in linux, I'd like to know if Windows has some equivalents for these.
And one more thing: what's that command that translates an IP to the hostname? Like translating 64.233.183.147 to www.google.com. I'd like to know this both in Windows and Linux if possible. Thank you.
 
Old 06-16-2006, 05:03 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
You can install Cygwin, and get access to tcpdump, whois and host (the answer to your second question).
 
Old 06-16-2006, 05:15 PM   #3
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Original Poster
Rep: Reputation: 31
I know about Cygwin, I was wondering if there are some equivalents for Windows/DOS by default, because I intend to write an application for Windows that uses these (I have that one for linux). If it's necessary, I could make an installer and include cygwin, but I guess it's not.
Question about host:
Code:
[cosmin@blue ~]$ ping www.google.com
PING www.l.google.com (64.233.183.99) 56(84) bytes of data.
64 bytes from 64.233.183.99: icmp_seq=1 ttl=236 time=53.7 ms

--- www.l.google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 53.797/53.797/53.797/0.000 ms
[cosmin@blue ~]$ host 64.233.183.99
Host 99.183.233.64.in-addr.arpa not found: 3(NXDOMAIN)
[cosmin@blue ~]$ whois 64.233.183.99
[Querying whois.arin.net]
[whois.arin.net]

OrgName:    Google Inc.
OrgID:      GOGL
Address:    1600 Amphitheatre Parkway
City:       Mountain View
StateProv:  CA
PostalCode: 94043
Country:    US

NetRange:   64.233.160.0 - 64.233.191.255
CIDR:       64.233.160.0/19
NetName:    GOOGLE
NetHandle:  NET-64-233-160-0-1
Parent:     NET-64-0-0-0-0
NetType:    Direct Allocation
NameServer: NS1.GOOGLE.COM
NameServer: NS2.GOOGLE.COM
Comment:
RegDate:    2003-08-18
Updated:    2004-03-05

RTechHandle: ZG39-ARIN
RTechName:   Google Inc.
RTechPhone:  +1-650-318-0200
RTechEmail:  arin-contact@google.com

OrgTechHandle: ZG39-ARIN
OrgTechName:   Google Inc.
OrgTechPhone:  +1-650-318-0200
OrgTechEmail:  arin-contact@google.com

# ARIN WHOIS database, last updated 2006-06-15 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.
Could you explain why host dosn't work, but whois does?
And still another one: is there any way to translate an IP to the hostname, besides ping?
 
Old 06-16-2006, 05:49 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Ping does not translate the IP address to a hostname; DNS does. The host command could not resolve the IP to a hostname, because there is no reverse-DNS entry defined for that address.
 
Old 06-16-2006, 05:58 PM   #5
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by macemoneta
Ping does not translate the IP address to a hostname; DNS does. The host command could not resolve the IP to a hostname, because there is no reverse-DNS entry defined for that address.
Oka, but I guess you have to use ping to resolve a hostname to an IP, right? Or do you have a "dns" command, because I don't...
And doesn't Windows have some commands for tcpdump and whois? I guess you don't even use Windows, that's why you don't know... Thanks.
 
Old 06-16-2006, 06:40 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The host command will work for either an IP address or a hostname.

Native Windows does not have a tcpdump command or whois (or dig for that matter).

You may be able to find ports of these, similar to the ports in the Cygwin package, since they are open source. Your best bet for finding help with hunting down Windows software is probably not on a forum called "LinuxQuestions".
 
Old 06-16-2006, 06:49 PM   #7
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by macemoneta
Your best bet for finding help with hunting down Windows software is probably not on a forum called "LinuxQuestions".
Yeah, I thought about this before asking. But consider this: from the users who use Linux as their main distribution, some of them use Windows too (more or less). From the users who use Windows as their main distribution, I would say VERY few of them use linux, too. So, if I have a question concerning both of them, I thought I should ask on a linux forum and not a Windows one. I don't even know a single Windows forum, just for the record, but I guess they have some... Thanks.
 
Old 06-17-2006, 10:14 AM   #8
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Quote:
Originally Posted by macemoneta
Native Windows does not have a tcpdump command or whois (or dig for that matter).
The port for tcpdump is called WinDump.
 
Old 06-17-2006, 10:23 AM   #9
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Original Poster
Rep: Reputation: 31
I'm looking for a windows command like tcpdump in linux.
 
Old 06-17-2006, 10:30 AM   #10
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Quote:
Originally Posted by zahadumy
I'm looking for a windows command like tcpdump in linux.
That's what osor offered you. If it's not what you are looking for, try to be specific in indicating the additional requirements you have.
 
Old 06-17-2006, 04:57 PM   #11
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 429Reputation: 429Reputation: 429Reputation: 429Reputation: 429
Moved: This thread is more suitable in General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-21-2006, 09:36 PM   #12
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
ping -a <ip> will resolve a host name for you in windows. But for some reason I think it works with WINS and not DNS..... I'm not in front of a windows pc right now so I can't confirm that.

nslookup is another command that may help you out.
 
Old 06-23-2006, 03:48 PM   #13
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 275

Rep: Reputation: 32
Sam Spade

Sam Spade, freeware network query tool for Windows
 
  


Reply

Tags
cygwin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
K3b: - Howto re-dock "Directories" and "Contents" windows back into the main window? hagies Linux - Software 4 04-26-2006 08:38 AM
"sar" and "iostat" equivalents on Debian? aditya_shah Debian 8 08-01-2004 11:53 PM
looking for "table of equivalents, replacements, analogs of windows programs." bruce in bangko Linux - Newbie 3 12-30-2003 05:57 AM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration