LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2004, 02:43 AM   #1
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
nmblookup ?


how can I find the name of a computer if I know it's IP address ? is it with nmblookup ? if so could you give me the complete command to do this ?
 
Old 05-22-2004, 02:49 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
why dont u look at the man page of nmblookup "man nmblookup" or u dont type "nmblookup --help" ?
if u did one of those u would see the answer.
 
Old 05-22-2004, 02:56 AM   #3
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
well to my understanding I should use nmblookup -T ip_address, but it says name query failed
 
Old 05-22-2004, 03:20 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
when u do nmblookup --help, u will see:
-A, --lookup-by-ip Do a node status on <name> as an IP

so try:
nmblookup -A ip_address
 
Old 05-22-2004, 03:51 AM   #5
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
10x man, that did the trick, I'm so stupid , could I ask you one more question. Is there a way I could scan my entire network and write in a file the IP addresses of each workstation and near that IP address the name of the workstation ? (like in a hosts file)
 
Old 05-22-2004, 03:55 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
yeah. u can write a shell script file to do that. i cant help u about shell script. cos im busy now. sorry.
 
  


Reply



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
nmblookup problem. bruse Linux - Networking 1 09-07-2005 02:07 PM
nmblookup problem. bruse Linux - Networking 0 09-07-2005 05:32 AM
nmblookup can't find itself jwizardc Linux - Networking 2 07-07-2004 09:23 AM
nmblookup azeem81 Linux - Software 0 05-31-2004 02:33 PM
Samba - nmblookup will_k Linux - Networking 3 08-25-2003 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration