Nyk Tarr wrote:
On Wed, Nov 20, 2002 at 08:30:22PM +0000, Paulo Lopes wrote:
David B Harris wrote:
On Wed, 20 Nov 2002 15:38:34 +0000
Paulo Lopes <[EMAIL PROTECTED]> wrote:
Hi,
I've a woody laptop system and i change alot from network to network at
my job. Usually all the networks i join are windows machines networks
using smb protocol to communicate. I wanted to know if there's any way
to resolv the windows domain names under linux?
example:
on the current network there's a machine called shadow, under windows i
can do ping shadow and it will anwser back. On linux i've to make
something like: smbclient -L shadow, look for the ip in the anwser then
ping <IP>, because ping shadow returns :unknown host shadow.
probably that's a smb configuration that i've missed, but i'm new to
linux :-)
I suspect that you're not resolving "windows domain names", but rather
that, in the Windows installation, it's set to search a default domain. So
"shadow" is really "shadow.foo.com", but it's set to search "foo.com", so
you can use 'shadow' as a shorthand for 'shadow.foo.com'.
Typically, DHCP does this for you. If not, you can add "search" lines to
/etc/resolv.conf:
search mtnk.phub.net.cable.rogers.com eelf.ddts.net oftc.net
So were I to 'ping shadow', it'd first try
'shadow.mtnk.phub.net.cable.rogers.com', then 'shadow.eelf.ddts.net', then
'shadow.oftc.net', then try the regular DNS route (which won't work,
because there's no .shadow top-level domain).
That's not what i need... i need to resolve NetBIOS names such as other
names.
The network does not have a WINS server nor DNS server. All names on the
network are resolved from netbios... (it's a small network 20 windows
machines)
The next level back from /etc/resolve.conf is /etc/nsswitch.conf which
tells the resolver which services to look for names in, but doesn't seem
to include netbios, perhaps for some of the reasons stated in the article
below...
A quick google brought up:
http://www.linuxworld.com/linuxworld/lw-1999-01/lw-01-thereandback-p6.html
which discusses what you want to do. I haven't read far enough to see if
he comes to a solution - I suspect not.
nbtscan should give you a list of names and numbers though.
hth
nyk
thanks, i've allready been to that page... he didn't came to a solution...
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]