Cant find my hosts file..

Yes_sir21

Weaksauce
Joined
Dec 31, 2009
Messages
85
As said, i cant find hosts file at C:\Windows\System32\drivers\etc , All i have there is imhosts,networks,protocol, services. Im on win7 64bit.
where else should look for it??
Should i create a new one but what about the old setting that i dont remember?
I have motified the file before but and im sure i put it back at the same place.
 
As said, i cant find hosts file at C:\Windows\System32\drivers\etc , All i have there is imhosts,networks,protocol, services. Im on win7 64bit.
where else should look for it??
Should i create a new one but what about the old setting that i dont remember?
I have motified the file before but and im sure i put it back at the same place.

do you have system/hidden files visable in explorer?

have you tried searching for it?
 
You can create it if you want. The default contents do nothing under Windows 7 since everything is just a comment (#):

Code:
# Copyright (c) 1993-2006 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

# localhost name resolution is handled within DNS itself.
#       127.0.0.1       localhost
#       ::1             localhost
 
I tried searching for it, using the search bar as well to no avail. Show hidden files was set on hidden but even after i change it do visible it wont show up.
Creating a new file will be my last option, i would rather find the old one.
 
Open a dos prompt, and enter the following commands:

Code:
c:
cd \windows\system32\drivers\etc
dir /a

If you don't see it in the directory listing, it's not there and you're going to have to recreate it. This is the only location that the file can be stored to allow windows to recognize it.
 
For Windows 7, no hosts file is the same as the default one. There are no mappings in the default one. :p

Recreating it is not a problem.
 
Back
Top