I should have finished reading the thread before writing the first
response...

> FTP is *not* an SMB protocol
> and has nothing to do with Samba nor Lan Manager

Actually, although functional only over IP, neither is FTP a TCP/IP
protocol--it is it's own protocol,  and relies on name resolution based upon
whichever communucation protocol the OS is using.

In windows, FTP can be performed through simple IP or SMB (NetBIOS) name
resolution. Windows does the name resolution outside of the file transfer
protocol, and forwards the resolved name to the FTP client/server.

As Charles explained, Windows usually uses a WINS server to resolve NetBIOS
names to IP address, when the WINS server is lacking the name to resolve, or
non-existent, the lmhosts file is used as a substitute for the server. If no
WINS server is specified with the TCP/IP Protocol settings, the lmhosts file
is the first to be looked for. And, again, if it doesn't exist, the hosts
file is read, if that doesn't contain the name to resolve, then the DNS
server is used...and, if that fails--well, we're all accustomed to Windows
crashes. :-)

I won't get into what Windows does when we involve IPX/SPX.

--Greg Stewart, MCP



----- Original Message -----
From: "Ron Johnson, Jr." <[EMAIL PROTECTED]>


> Vu said he wanted to use FTP.  FTP is *not* an SMB protocol
> and has nothing to do with Samba nor Lan Manager.
>
> Therefore, he needs hosts, not lmhosts.
>
> Ron
>
> Charles Curley wrote:
> >
> > On Thu, Nov 02, 2000 at 10:02:42AM -0600, Ron Johnson, Jr. wrote:
> > > We use the "hosts" file, not "lmhosts" in our LAN.
> >
> > Right.
> >
> > lmhosts is a microsoftism. It is used for SMB name resolution. The "lm"
> > comes from "Lan Manager", IBM's name for the protocol when they first
came
> > up with it. You will find it on any NT box as Greg describes below. On a
> > W95/98 box it is in c:\windows.
> >
> > hosts is the Unix name and is used to tcp/ip name resolution. So the two
> > files do the same thing, but in the contenxt of different protocols. If
> > you have a Windows client running SMB for file sharing and tpc/ip for
net
> > access, it may use both files. I have both on all of my Windows boxes.
> >
> > If you run Samba on your linux box, you have both, in /etc.
> >
> > You still need DNS resolution, although if you have an NT Server WINS
will
> > do it as well. I don't know if Samba handles WINS or not. You need DNS
for
> > resolving names outside your network. You can use DNS or hosts for name
> > resolution within your network. And you need lmhosts for SMB name
> > resolution in your own network.
> >
> > If you decide to uses hosts for your own network, you can get away with
> > using your ISP's name server directly. Better, use a caching only name
> > server on your firewall and have all your machines use it for name
> > resolution. I do the latter, and I think it speeds up net access over a
> > 56K modem noticably.
> >
> > >
> > > Also, use Windows Explorer Tools|Find|"Files or Folders" to
> > > find "hosts", since w98 & NT4 put it in different places.
> > >
> > > Ron
> > >
> > > Greg Stewart wrote:
> > > >
> > > > > I think that I have to config the DNS server in order to use the
FTP
> > > > software
> > > >
> > > > I don't quite understand why you'd need to configure a DNS server to
use an
> > > > ftp client on a local LAN. Do you mean that you want to be able to
type
> > > > ftp \\mylinuxbox  and connect to the linux box without having to
type the IP
> > > > address?
> > > >
> > > > 1st, a DNS server maps IP addresses to FQDNs (fully qualified domain
names).
> > > > Unless you have your domain names configured on your hosts,
internally, this
> > > > is only going to confuse the issue.
> > > >
> > > > 2nd If your network is using DHCP to assign IP addresses, things are
going
> > > > to be a little difficult.
> > > >
> > > > BUT, 3rd, if your IPs are static, you can enter the IP address of
the linux
> > > > box and the name you want to call that linux box, in the lmhosts
file on
> > > > your windows box's hard drive.
> > > >
> > > > If you are running NT, the file exists as "Lmhosts.sam" in the
> > > > C:\WINNT\system32\drivers\etc folder-- the ".sam" means "sample" and
the
> > > > extension needs to be removed after you edit it.
> > > >
> > > > If you are running Win98 or otherwise, use the file find to locate
the
> > > > lmhosts.sam file, and edit it where it lives.
> > > >
> > > > The format of the line to add is as follows (and stick it 'before'
any
> > > > comments, as it slows windows down to have to sort through comments
first):
> > > >
> > > > 192.168.0.1    mylinuxbox'sname
> > > >
> > > > Since you're on a local LAN, don't add a "dot" and a domain
name...all you
> > > > want to do is define a name by which your windows box will call the
linux
> > > > box. It can be "Fred" if you want, even it the linux box's name is
> > > > "Marsha"...it don't matter as long as you know what you're looking
for.
> > > >
> > > > Don't forget to remove the ".sam"
> > > >
> > > > --Greg
> > > >
> > > > ----- Original Message -----
> > > > From: "Vu Nguyen" <[EMAIL PROTECTED]>
> > > >
> > > > > Hi
> > > > > I want to use WinFTP from one of the windows machine to access to
the
> > > > Linux 7.1 machine (both of them in one local network, I can ping
from one to
> > > > the other by the IP address because it does not understand by the
name) .  I
> > > > think that I have to config the DNS server in order to use the FTP
software.
> > > > Does anyone have any ideas on how to do it.  Please give me an
advise and
> > > > thost steps.
> > > > >
> > > > > Thank you so much
> > >
> > > --
>
> --
> 123456789012345678901234567890123456789012345678901234567890
> +----------------------------------------------------------+
> | Ron Johnson, Jr.        Home: [EMAIL PROTECTED]     |
> | Jefferson, LA  USA      WWW : [EMAIL PROTECTED]     |
> |                         http://ronandheather.dhs.org     |
> +----------------------------------------------------------+
>
>


----------------------------------------------------------------------------
----


> Keep in touch with http://mandrakeforum.com:
> Subscribe the "[EMAIL PROTECTED]" mailing list.
>

 
______________________________________________________________________________
Vous avez un site perso ?
2 millions de francs � gagner sur i(france) !
Webmasters : ZE CONCOURS ! http://www.ifrance.com/_reloc/concours.emailif



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to