Re: Strange problem with linux samba
- From: Lew Pitcher <Lew.Pitcher@xxxxxx>
- Date: Tue, 20 Dec 2005 13:44:32 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Al Phi wrote:
> I'm currently using portage version of samba 3.0.14a-r2. I don't think
> this is a direct problem with samba.
>
> When I ping -c1 google.com
> 64 bytes from 72.14.207.99: icmp_seq=1 ttl=239 time=923 ms
>
> When I ping -c1 silvermountain
> ping: unknown host silvermountain
[snip]
> Ping, web browsers, etc., won't resolve names like
> all other windows boxes can.
What you have to realize is that Microsoft "extended" how hostname
resolution is handled when they built the Windows TCP/IP stack.
On Unixish systems, hostname resolution is performed through standard
services that (typically) talk to a DNS server. So, on a unix box,
ping silvermountain
will talk to DNS (actually, the resolver libraries) to look for a DNS
hostname called "silvermountain" within the default DNS domain.
On the other hand, on a MSWindows system, hostname resolution is
performed /first/ through the SMB name server, and if that fails, then
through the DNS. Thus, on a MSWindows box
ping silvermountain
will talk to the local Microsoft SMB name server (i.e. Samba's nmbd) to
resolve the name within the local SMB namespace.
What you've encountered is that your linux system is not resolving
TCP/IP host names against your Samba nmbd. This is normal; your Windows
systems are the ones that aren't working properly.
FWIW, you can configure your dhcp server to update your local dns server
(assuming you have one) with the "hostname" supplied by your dhcp
clients. If you make sure that your dhcp clients use the same "hostname"
for both their TCP/IP hostname /and/ their SMB hostname, then DNS name
resolves will look like they work the same as on Windows.
- --
Lew Pitcher, IT Specialist, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFDqFEQagVFX4UWr64RAkrrAJ9UssuX0cuIZ6J99LNEw4vLBUk70ACglOdF
o4vCccalnRE9MK66z6FK8rw=
=kbdo
-----END PGP SIGNATURE-----
.
- Prev by Date: Re: Win98 and lunux samba server
- Next by Date: Re: Win98 and lunux samba server
- Previous by thread: Re: Linux Script To Check Available Windows Disk Space
- Next by thread: Samba 3.0.21 Available for Download
- Index(es):
Relevant Pages
|