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).
msg09724/pgp00000.pgp
Description: PGP signature