Need to add some code why dont i have `hosts` after this search...C:\Windows\System32\drivers\etc ?

7 replies
Hi guys,

Following some instructions for a peice of softwear and need to add the code into the folder `hosts`

I follow the instructions.. `C:\Windows\System32\drivers\etc ` but when i go into `ect` i should see a folder called `hosts `but its not there all i have are ..

Services
networks
protocol
Imhosts.sam

In the guide these are also they but so is `hosts` any idea guys ??


Thanks Jim
#`hosts` #add #code
  • Profile picture of the author rosetrees
    Have you selected the option to display hidden folders? Where you find that depends on which version of Windows you are using. In Windows 7 it's under "organize".

    Don't know if that helps at all.
    {{ DiscussionBoard.errors[6214894].message }}
  • Profile picture of the author jimkirk1943
    Thanks Rose but its still not there !
    {{ DiscussionBoard.errors[6215014].message }}
  • Profile picture of the author Valdor Kiebach
    There is no folder called hosts.
    There should be a file called hosts
    This is what it contains normally:
    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
    
    127.0.0.1       localhost
    ::1             localhost
    {{ DiscussionBoard.errors[6215211].message }}
  • Profile picture of the author jimkirk1943
    Valdor thats what i`m looking for !!

    Why can i not find it ??
    {{ DiscussionBoard.errors[6215451].message }}
  • Profile picture of the author KirkMcD
    Because you don't have one. It's not a necessary file.
    But did you notice this file: Imhosts.sam? That is the sample Hosts file. Copy and rename it to hosts.
    {{ DiscussionBoard.errors[6216347].message }}
    • Profile picture of the author JohnnyS
      Originally Posted by KirkMcD View Post

      Because you don't have one. It's not a necessary file.
      But did you notice this file: Imhosts.sam? That is the sample Hosts file. Copy and rename it to hosts.
      isn't it a necessary file?
      {{ DiscussionBoard.errors[6217672].message }}
      • Profile picture of the author Earnie Boyd
        Originally Posted by JohnnyS View Post

        isn't it a necessary file?
        No, it is not a necessary file in the sense that things will work fine unless you need to add something to it. If you're instructed by some program to add to the file then you will need to create it. 127.0.0.1 is always localhost, listed in the file or not. 127.0.0.1 can also be mapped to IANA — Example domains if you wish.
        Signature
        {{ DiscussionBoard.errors[6218469].message }}

Trending Topics