[linux-cifs-client] CIFS mount works when I specify IP address, butnotwhenI only specify hostname

David Morel david.morel at amakuru.net
Tue Mar 30 07:29:59 GMT 2004


Le lun 29/03/2004 à 23:14, Steven French a écrit :
> > Does "nslookup hostname" (or dig) and "ping hostname" NEED to work? 
> > Shouldn't CIFS use NMB or whatever Samba uses to resolve hostnames? 
> > Samba, smbclient, and smbfs all work on this same computer.

You can still use wins resolution if you really want to anyway, which is
quite transparent. All you have to do is chanqe one line in
nsswitch.conf

> Support for a secondary mechanism (e.g. WINS/NBNS and/or LMHOSTS file
> and/or the local RFC1001 B-Node broadcast) for determining the
> server's ip address could be made optional in the cifs client but it
> is a lower priority for me than some of the mustfix issues that I have
> been debugging.   I would be willing to take patches though (and it
> may be doable in only a few hundred lines of code).   Since
> RFC1001/RFC1002 time period, many of the reasons for having two name
> services (DNS vs. NBNS/WINS) have disappeared, and for good or bad DNS
> has won as the standard mechanism for name to ip address mapping.  I
> do think there is a reasonable case for local subnet B-node broadcast
> (RFC1001 style) being helpful in small LANs with no DNS - and this
> would be easy enough to add to the kernel as would adding an optional
> check in a local (Samba) LMHOSTS file in the mount helper if the
> getHostByName fails).   Waiting for the B-node broadcast name query to
> timeout could add measurably to the user's wait time on a failed mount
> attempt (server down or mistyped server name), but the check in
> LMHOSTS would be harmless.
> 
> 
> 
> 
> Steve French
> Senior Software Engineer
> Linux Technology Center - IBM Austin
> phone: 512-838-2294
> email: sfrench at-sign us dot ibm dot com
> 
> ______________________________________________________________________
> _______________________________________________
> linux-cifs-client mailing list
> linux-cifs-client at lists.samba.org
> http://lists.samba.org/mailman/listinfo/linux-cifs-client
-- 
***********************************************
david.morel at amakuru.net
OpenPGP public key: http://www.amakuru.net/dmorel.asc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://lists.samba.org/archive/linux-cifs-client/attachments/20040330/8ad6d24a/attachment.bin


More information about the linux-cifs-client mailing list