Re: Strange problem with linux samba



-----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-----
.



Relevant Pages

  • Re: Hosts file ignored
    ... > any of the entries I have made to the server's hosts file. ... > Successfully flushed the DNS Resolver Cache. ... > I am not running a DNS server on my system. ... > I can ping IP addresses without any problem, both on the LAN and on ...
    (microsoft.public.windows.server.general)
  • Re: HTTP trouble in 2004
    ... In this way, all DNS ... how does this server resolve external ... They are just HTTP ... > Ping in ALLOW PING protool from EXTERNAL to INTERNAL ...
    (microsoft.public.isaserver)
  • Re: loss of SOME connectivity
    ... I'm a little concerned about your Primary DNS suffix and your DHCP. ... Is your router handling DHCP for the network? ... Ethernet adapter Server Local Area Connection: ... I get "Ping request could not find ...
    (microsoft.public.windows.server.sbs)
  • Re: Cant see out to .co.uk from inside my .local domain (forward l
    ... Well I removed the entry from my hosts file and issued a ping command to both ... network only from the server which I changed the hosts file for. ... Indeed is it even a DNS issue. ...
    (microsoft.public.windows.server.sbs)
  • Re: Cant see out to .co.uk from inside my .local domain (forward l
    ... Ping cp.xxx.co.uk, same question. ... I found out the ip of my .co.uk so I put this into the hosts file of the ... network only from the server which I changed the hosts file for. ... Indeed is it even a DNS issue. ...
    (microsoft.public.windows.server.sbs)