1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

host file problem

Discussion in 'Windows XP' started by kalicharan, Mar 6, 2010.

  1. kalicharan

    kalicharan Flightless Bird

    i delete my host file (shift+del), how can i get back my host file or the
    default one ?
     
  2. David H. Lipman

    David H. Lipman Flightless Bird

  3. Nil

    Nil Flightless Bird

    On 06 Mar 2010, =?Utf-8?B?a2FsaWNoYXJhbg==?=
    <kalicharan@discussions.microsoft.com> wrote in
    microsoft.public.windowsxp.general:

    > i delete my host file (shift+del), how can i get back my host file
    > or the default one ?


    The default hosts file has only one entry:

    127.0.0.1 localhost


    So, just create a simple text file with that one line and you'll be all
    set. Of course, any custom entries you or your applications may have
    created have alresdy been lost.
     
  4. Jose

    Jose Flightless Bird

    On Mar 6, 9:20 am, kalicharan <kalicha...@discussions.microsoft.com>
    wrote:
    > i delete my host file (shift+del), how can i get back my host file or the
    > default one ?


    Create a new one with any text editor, make the Properties Read Only
    when you are done.

    This is the contents of the default host file you can copy/paste into
    your replacement:



    # 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
     
  5. PA Bear [MS MVP]

    PA Bear [MS MVP] Flightless Bird

    Windows will create new, default HOSTS file if it's needed.

    kalicharan wrote:
    > i delete my host file (shift+del), how can i get back my host file or the
    > default one ?
     
  6. Jose

    Jose Flightless Bird

    On Mar 6, 1:59 pm, "PA Bear [MS MVP]" <PABear...@gmail.com> wrote:
    > Windows will create new, default HOSTS file if it's needed.
    >
    >
    >
    > kalicharan wrote:
    > > i delete my host file (shift+del), how can i get back my host file or the
    > > default one ?


    Here is a link that may also be helpful regarding a missing hosts
    file:

    http://support.microsoft.com/kb/972034

    How would one create the conditions necessary for Window to create a
    new. default HOSTS file?
     

Share This Page