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


-- 

                -- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley

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

Reply via email to