LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hi, how do you find names on a network? (https://www.linuxquestions.org/questions/linux-newbie-8/hi-how-do-you-find-names-on-a-network-739020/)

crusader7 07-09-2009 05:43 PM

Hi, how do you find names on a network?
 
How do you search for computer names on a network. And how do you search for available shared files.

I have samba setup properly because I can access my wife's computer and share files.

I found her computer because I already knew her computer name.

I tried
Quote:

nmblookup -d 2 '*'
added interface eth0 ip=fe80::20d:56ff:fead:92fe%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface ath0 ip=fe80::214:6cff:fe09:b33%ath0 bcast=fe80::ffff:ffff:ffff:ffff%ath0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.0.187 bcast=192.168.0.255 netmask=255.255.255.0
querying * on 192.168.0.255
name_query failed to find name *
I found her computer using smbclient -L mom
However, as stated before, I already knew her computer name.
Quote:

Domain=[MOM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
Photos Disk
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
SharedDocs Disk
HPOffice Printer HP Officejet Pro L7500 Series
hpphotos Printer hp photosmart 7900 series
Fdrive Disk
Printer Printer Microsoft Office Document Image Writer
Domain=[MOM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------
So how do I find other computer names?

Tinkster 07-09-2009 06:06 PM

Hi,



The "problem" is that there's two different 'names' on the
network; there's the hostname that ties an IP address to
a name; and then there's Windows (WINS) machine names
that don't necessarily match the hostname, and is relevant
only for the windows side of things.

I assume you're after the windows stuff (and that your LAN
doesn't have a DNS server).
Have a look at smb4k, NMBscan, or the likes.



Cheers,
Tink


All times are GMT -5. The time now is 05:22 AM.