Author Topic: Hosts file  (Read 3893 times)

0 Members and 1 Guest are viewing this topic.

Avastfan1

  • Guest
Hosts file
« on: August 25, 2009, 09:00:20 PM »
Dear Forum,

Can somebody tell me where my host file is?

I've looked in C:\WINDOWS\ and C:\WINDOWS\SYSTEM32 but there is no host.txt.

The operating system is Window$ XP Pro $P3.

Thanks in advance!

Avastfan1

micky77

  • Guest
Re: Hosts file
« Reply #1 on: August 25, 2009, 09:05:17 PM »
c:\windows\system32\drivers\etc\hosts   Right click on the last file and open with notepad

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: Hosts file
« Reply #2 on: August 25, 2009, 09:07:01 PM »
It's just host, not host.txt.
It's a extensionless file.
The best things in life are free.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89061
  • No support PMs thanks
Re: Hosts file
« Reply #3 on: August 25, 2009, 09:07:21 PM »
Have you not tried a search for HOSTS using windows explorer's search function ???

C:\WINDOWS\system32\drivers\etc\hosts
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Avastfan1

  • Guest
Re: Hosts file
« Reply #4 on: August 25, 2009, 09:11:00 PM »
Thank you both for the tip. I located it.

Would you be so kind as to share your thoughts on the contents of mine? (Please see below).

Thanks in advance,

Avastfan1

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89061
  • No support PMs thanks
Re: Hosts file
« Reply #5 on: August 25, 2009, 09:27:03 PM »
That is the default HOSTS file, nothing wrong there.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Avastfan1

  • Guest
Re: Hosts file
« Reply #6 on: August 25, 2009, 09:43:59 PM »
Thanks!

Really appreciate that! Have a great night!

Avastfan1

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89061
  • No support PMs thanks
Re: Hosts file
« Reply #7 on: August 25, 2009, 09:49:39 PM »
You're welcome.

Was there anything that made you seek out the HOSTS file ?
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

YoKenny

  • Guest
Re: Hosts file
« Reply #8 on: August 26, 2009, 01:29:35 AM »
Have a read:
Blocking Unwanted Parasites with a Hosts File
http://www.mvps.org/winhelp2002/hosts.htm

Avastfan1

  • Guest
Re: Hosts file
« Reply #9 on: August 27, 2009, 08:18:21 AM »
You're welcome.

Was there anything that made you seek out the HOSTS file ?

Hi DavidR,

Not particularly. Purely my lack of knowledge about Window$ (due to my DOS roots) and the thirst for knowledge to know more about computers.

Thanks,

Avastfan1

YoKenny

  • Guest
Re: Hosts file
« Reply #10 on: August 27, 2009, 09:51:47 AM »
The HOSTS file has been around since DOS days as it was used when the DNS system was not available:
http://en.wikipedia.org/wiki/Domain_Name_System#History

http://en.wikipedia.org/wiki/Hosts_file

There's no place like 127.0.0.1

In computer terms it means There's no place like home as the first line of the HOSTS file 127.0.0.1       localhost defines home as this computer.

Brings back memories of '82 and my first IBM PC.