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

Re: SAMBA resolv configuration



David B Harris wrote:

On Wed, 20 Nov 2002 15:38:34 +0000
Paulo Lopes <pmml@netvita.pt> 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)

Also this network doesn't have DHCP.



Reply to: