Tämän artikkelin avulla voit palauttaa Hosts-tiedoston oletusarvon mukaiseksi.
Jos haluat, että Hosts-tiedosto palautetaan oletusarvon mukaiseksi puolestasi, siirry
Korjaa ongelma puolestani -osaan. Jos palauttaa Hosts-tiedoston oletusarvon mukaiseksi itse, siirry
Haluan korjata ongelman itse -osaan.
Jos haluat, että Hosts-tiedosto palautetaan oletusarvon mukaiseksi automaattisesti, napsauta
Fix it -ratkaisun painiketta tai linkkiä, valitse
Tiedostojen lataaminen -valintaikkunassa
Suorita ja noudata sitten ohjatun Fix it -toiminnon ohjeita.
Huomautus Tämä ohjattu toiminto saattaa olla vain englanninkielinen. Automaattinen korjaus toimii kuitenkin myös muiden Windowsin kieliversioiden kanssa.
Huomautus Jos et ole käyttämässä tietokonetta, jossa tämä ongelma ilmenee, voit tallentaa automaattisen korjauksen muistitikkuun tai CD-levylle ja suorittaa automaattisen korjauksen sitten tietokoneessa, jossa ongelma ilmenee.
Siirry seuraavaksi
Korjasiko tämä ongelman? -osaan.
Jos haluat palauttaa Hosts-tiedoston oletusarvon mukaiseksi, toimi seuraavasti:
- Napsauta Käynnistä-painiketta, valitse Suorita, kirjoita %systemroot% \system32\drivers\etc ja valitse sitten OK.
- Nimeä Hosts-tiedosto uudelleen nimellä Hosts.old.
- Luo uusi oletusarvon mukainen hosts-tiedosto. Voit tehdä tämän seuraavasti:
- Napsauta %WinDir%\System32\Drivers\Etc-kansion tyhjää kohtaa hiiren kakkospainikkeella, valitse Uusi, valitse Tekstitiedosto, kirjoita hosts ja paina sitten Enter-näppäintä.
- Vahvista, ettei tiedostonimen tunniste ole .txt, valitsemalla Kyllä.
- Avaa uusi Hosts-tiedosto tekstieditorissa. Avaa tiedosto esimerkiksi Muistiossa.
- Kopioi seuraava teksti tiedostoon:
Windows XP tai Windows Server 2003# 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
Windows Vista tai Windows Server 2008# 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
Windows 7# 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 handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost
- Tallenna ja sulje tiedosto sitten.
Tarkista, onko ongelma korjattu. Jos ongelma on korjattu, sinun ei tarvitse tehdä muita tässä artikkelissa kuvattuja toimia. Jos ongelmaa ei ole korjattu, voit
ottaa yhteyttä tukeen
(http://support.microsoft.com/contactus/?ln=fi)
.
Artikkelin tunnus: 972034 - Viimeisin tarkistus: 3. heinäkuuta 2012 - Versio: 5.0
Artikkelin tiedot koskevat seuraavia tuotteita:
- Windows 7 Enterprise
- Windows 7 Home Basic
- Windows 7 Home Premium
- Windows 7 Professional
- Windows 7 Starter
- Windows 7 Ultimate
- Windows Vista Enterprise 64-bit edition
- Windows Vista Home Basic 64-bit edition
- Windows Vista Home Premium 64-bit edition
- Windows Vista Ultimate 64-bit edition
- Windows Vista Business
- Windows Vista Business 64-bit edition
- Windows Vista Enterprise
- Windows Vista Home Basic
- Windows Vista Home Premium
- Windows Vista Starter
- Windows Vista Ultimate
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Server 2003, Enterprise x64 Edition
- Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
- Microsoft Windows Server 2003, Standard x64 Edition
- Microsoft Windows Server 2003, Standard Edition (32-bit x86)
- Windows Server 2008 Datacenter
- Windows Server 2008 Enterprise
- Windows Server 2008 Standard
| kbexpertisebeginner kbsurveynew kbmsifixme kbfixme KB972034 |