Forgive me if this is a stupid question, but I couldn't find it in the mailing list archives, the faq, the included documentation, or the source, so I figured I'd at least ask. I'd like to query a WinNT wins server from my linux box, and find the IP address of a machine that is registered there. Ideally, I'd like to just plug that into smbclient. As it stands, when I type smbclient //server/share, and the server is not on my local net, smbclient can't find it. It doesn't appear to check the WINS server at all..... Is there a utility I'm missing somewhere? Thanks! -- Dave Terrell dterrell@obscurity.net finger dterrell@uiuc.edu for pgp key
On Wed, 3 Dec 1997, David Terrell wrote:> Forgive me if this is a stupid question, but I couldn't find it in the > mailing list archives, the faq, the included documentation, or the source, > so I figured I'd at least ask. > > I'd like to query a WinNT wins server from my linux box, and find the > IP address of a machine that is registered there. Ideally, I'd like > to just plug that into smbclient. As it stands, when I type > smbclient //server/share, and the server is not on my local net, smbclient > can't find it. It doesn't appear to check the WINS server at all..... > > Is there a utility I'm missing somewhere?i sent details last week to the digest on what is needed to do this in smbclient and nmblookup. best regards, luke <a href="mailto:lkcl@switchboard.net" > Luke Kenneth Casson Leighton </a> <a href="http://mailhost.cb1.com/~lkcl"> Samba Consultancy and Support </a>
Quoting David Terrell (dterrell@obscurity.net):> Forgive me if this is a stupid question, but I couldn't find it in the > mailing list archives, the faq, the included documentation, or the source, > so I figured I'd at least ask.I actually posted a patch to smbclient long time ago, but it didn't get much attention.> I'd like to query a WinNT wins server from my linux box, and find the > IP address of a machine that is registered there. Ideally, I'd like > to just plug that into smbclient. As it stands, when I type > smbclient //server/share, and the server is not on my local net, smbclient > can't find it. It doesn't appear to check the WINS server at all..... > > Is there a utility I'm missing somewhere?If the DNS address of the WINS server is danbo.ostenfeld, and you are looking for the IP of a server named K1800, this does it: [root@carlsberg /root]# nmblookup k1800#20 -B danbo.ostenfeld Added interface ip=192.38.212.1 bcast=192.38.216.1 nmask=0.0.0.0 Sending queries to 192.38.216.1 192.38.215.248 k1800 Alternative you can apply my patch to smbclient, which makes smbclient do the above automaticaly if there is a WINS server defined in smb.conf. I seem to have lost my own patch, so you will have to search the archive for it. Baldur