[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how can i find out a netbios name from an IP address.



Hi!

Joe Emenaker (jemenake@mail.cob.calpoly.edu):
> >are there any other tools that can do it?
> 
> The only thing I could find is to look in /var/samba/browse.dat and then use
> nmblookup on each one. Problem is, browse.dat doesn't hold all of the
> machines. What you need is a way to list all of the machines in a domain...
> but I couldn't figure out how to make samba do that.....

if you are a master browser and browse.dat doesn't show the whole domain,
your setup is broken (or your samba is not yet running the magic 45 minutes
it can take till a master browser is updated). 

Usually you can do "smbclient -L <netbios name of any masterbrowser>" to get
a list of all hosts in your domain. Usually the domain controller has the
most recent list (and delivers it to each subnets' masterbrowser).


Rainer

-- 
KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB  78 1D B5 64 E0 BF 72 EB

Attachment: pgplnvydgcW3g.pgp
Description: PGP signature


Reply to: