On Windows 95, 98, and Me the hosts file is located in c:\windows. Best, Tony -----Original Message----- From: [EMAIL PROTECTED] on behalf of Dave Christensen Sent: Mon 6/30/2003 12:48 PM To: 'Newbie Help' Cc: Subject: RE: [newbies] /etc/hosts
Is there an equivalent to /etc/hosts for Windows? I want to be able
access my local RH9 box from my Windows 2000 and Windows 98SE machines
without typing 192.168.*.*
Thanks,
Dave
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Michael Torrie
Sent: Saturday, April 19, 2003 1:22 AM
To: Newbie Help
Subject: Re: [newbies] /etc/hosts
On Sat, 2003-04-19 at 01:07, John Noll wrote:
> I really appreciate all the help.
>
> I'm just not understaniding the naming schemes for linux. My
/etc/hosts
> file looks like this right now:
>
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
>
> What should my /etc/hosts file look like if I want my computer to be
> named john.example.net? Do I need to specify an ip address? What
would
> the command be or am I just as well to do the changes in the redhat
gui
> for network configuration?
You have to understand that the name "john.example.net" is only the name
of your computer to others when you have it in a DNS server somewhere.
For example, my machine at work is called isengard, and it's
fully-qualified name is isengard.chem.byu.edu. But that really only
means anything to other computers because our DNS points isengard to my
ip address. All hosts does is give your local machine a quick way to
resolve simple names that aren't in anyone's DNS. For example, my home
machine's host file looks like:
127.0.0.1 enterprise.local.lan enterprise
localhost.localdomain localhost
192.168.0.1 reliant.local.lan reliant
192.168.0.2 enterprise
192.168.0.3 saratoga
192.168.0.4 stargazer.local.lan stargazer
192.168.0.5 intrepid
192.168.0.6 hood
192.168.0.7 voyager
192.168.0.8 defiant
192.168.0.11 vpn-tgt
192.168.0.10 vpn-src
192.168.0.12 sparc1
192.168.0.14 pegasus
192.168.0.30 marcus
192.168.0.32 marcuslaptop
None of my machines are on a DNS, (I could set on up if I wanted to, I
guess), so I put these in /etc/hosts so that *my* machine can reference
the others by name. If the other machines want to reference my machine,
they would need similar /etc/hosts entries.
Note that your computer can have a real ip address and no hostname
(other than localhost). However it could still have a name in a DNS
somewhere. Basically, whatever I set the hostname (during setup or in
/etc/sysconfig/network) to I add to the 127.0.0.1 line for convenience.
This probably is way confusing, but I'm not sure how to explain it
simpler. :)
Yes I really do have that many machines. Sort of. Reliant is my
firewall (on at&T cable), enterprise is my workstation, saratoga is my
i-opener (remember those?), stargazer is my brother's workstation, and
intrepid, hood, voyager and defiant are all virtual machines (VMWare and
User-mode-linux). Pegasus is my attempt at building a PVR (see
www.mythtv.org). Oh and the sparc1 entry is for my 25 Mhz black and
white Sparcstation ELC (runs diskless with an nfs-root and 1-bpp X
display!!). Gotta show off my toys.
Michael
>
> Let's say I have two computers that will be talking to each other at
> times. I want one to be called 'john.example.net' and the other
> 'tim.example.net'. Is that the right idea or should they be totally
> different like 'john.example.net' and tim.home.net'?
>
> Thank you,
>
> john
>
>
> _______________________________________________
> newbies mailing list
> [EMAIL PROTECTED]
> http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
<<winmail.dat>>
_______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
