Networking Forums

Networking Forums > Computer Networking > Windows Networking > Win 98 host file

Reply
Thread Tools Display Modes

Win 98 host file

 
 
Antoine Smith
Guest
Posts: n/a

 
      01-28-2004, 08:01 PM
I am having trbl resolving a host name, after entering
the ip address and the host name into the host file
located: C:windows\hosts. Tried pinging using the host
file and get "unkown host" I am able to ping the ip
address from this machine, I am also able to ping the
default entry: 127.0.0.1 localhost in the host file by
using hostname or ip. Is this the correct host file and
location that I am editing?
 
Reply With Quote
 
 
 
 
Steve Winograd [MVP]
Guest
Posts: n/a

 
      01-28-2004, 08:44 PM
In article <653e01c3e5e1$e184e090$(E-Mail Removed)>, "Antoine Smith"
<(E-Mail Removed)> wrote:
>I am having trbl resolving a host name, after entering
>the ip address and the host name into the host file
>located: C:windows\hosts. Tried pinging using the host
>file and get "unkown host" I am able to ping the ip
>address from this machine, I am also able to ping the
>default entry: 127.0.0.1 localhost in the host file by
>using hostname or ip. Is this the correct host file and
>location that I am editing?


The hosts file is in "C:\Windows\Hosts", with no file type or
extension. There's a sample of it in "C:\Windows\Hosts.sam". When
you edit the file, be sure to save it with the proper name. Some text
editors add ".txt" to the file name, giving "C:\Windows\Hosts.txt",
which won't work.

A good way to edit the hosts file is with this command, making sure to
include the period at the end:

notepad C:\Windows\Hosts.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional - Windows Networking
http://mvp.support.microsoft.com

Steve Winograd's Networking FAQ
http://www.bcmaven.com/networking/faq.htm
 
Reply With Quote
 
Alan Of Dale
Guest
Posts: n/a

 
      01-29-2004, 05:18 PM
First thing, that is the correct file.

127.0.0.1 is a loopback address used to test tcpip. If you
ping 127.0.0.1 it will make sure that the NIC is working
with tcpip. To add a name to the host file you need to
know the IP address of the machine 90.0.0.1(this is an
unrouteable ip address) and your host file will look
something like this:

90.0.0.1<tab>servername

Or you can do some thing really neat and use the host file
to block any site you don't want to see or goto. Example
add server or adult type sites. Here is my host file that
currently blocks over 92000 different ad server and adult
sites.

http://www.alanofdale.net/download/hosts.zip


>-----Original Message-----
>I am having trbl resolving a host name, after entering
>the ip address and the host name into the host file
>located: C:windows\hosts. Tried pinging using the host
>file and get "unkown host" I am able to ping the ip
>address from this machine, I am also able to ping the
>default entry: 127.0.0.1 localhost in the host file by
>using hostname or ip. Is this the correct host file and
>location that I am editing?
>.
>

 
Reply With Quote
 
Steve Winograd [MVP]
Guest
Posts: n/a

 
      02-01-2004, 02:09 AM
In article <6a6901c3e694$561f3560$(E-Mail Removed)>, "Alan Of Dale"
<(E-Mail Removed)> wrote:
>First thing, that is the correct file.
>
>127.0.0.1 is a loopback address used to test tcpip. If you
>ping 127.0.0.1 it will make sure that the NIC is working
>with tcpip. To add a name to the host file you need to
>know the IP address of the machine 90.0.0.1(this is an
>unrouteable ip address) and your host file will look
>something like this:
>
>90.0.0.1<tab>servername
>
>Or you can do some thing really neat and use the host file
>to block any site you don't want to see or goto. Example
>add server or adult type sites. Here is my host file that
>currently blocks over 92000 different ad server and adult
>sites.
>
>http://www.alanofdale.net/download/hosts.zip


I have a very small nit to pick, Alan:

The 90.0.0.0 block of IP addresses is reserved by the IANA (Internet
Assigned Numbers Authority) and shouldn't be used for any purpose. It
could be assigned in the future, and using it on a LAN will block
access to any Internet sites that are assigned in that block.

On a LAN, use a block specifically reserved for private networks by
the IANA:

10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255

For details, see:

INTERNET PROTOCOL V4 ADDRESS SPACE
http://www.iana.org/assignments/ipv4-address-space

Address Allocation for Private Internets
http://www.ietf.org/rfc/rfc1918.txt
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional - Windows Networking
http://mvp.support.microsoft.com

Steve Winograd's Networking FAQ
http://www.bcmaven.com/networking/faq.htm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Host file is ignored on W2k03 Andrew2 Windows Networking 3 01-10-2008 07:33 PM
Host File being ignored a-pabore Windows Networking 9 08-23-2006 08:06 PM
Host File for ME???? Daniel Bohner Windows Networking 11 07-07-2004 12:21 PM
scp (ssh) no file on dest host ?? Spam Usenet_alt_test Linux Networking 0 06-19-2004 02:41 PM
Host file Rob Gates Windows Networking 0 09-10-2003 12:26 PM



1 2 3 4 5 6 7 8 9 10 11