LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 03: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, 03: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, 03: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, 04: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, 04: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, 04: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


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


All times are GMT -5. The time now is 11:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration