Rezime
Ovaj članak vam pomaže da vratite datoteku "Hosts" na podrazumevanu vrednost.
Šta je to datoteka "Hosts"
Operativni sistem koristi datoteku Hosts za mapiranje imena hostova prilagođenih za osobe na numeričke IP adrese internet protokola koje identifikuju i pronađu hosta na IP mreži. Datoteka hosts je jedan od nekoliko sistemskih resursa koji se adresaju mrežnim čvorovima u računarskoj mreži i predstavlja uobičajeni deo primene IP adrese operativnog sistema.
Datoteka Hosts sadrži redove teksta koji se sastoje od IP adrese u prvom tekstualnom polju praćeno imenima hostova. Svako polje je odvojeno belim razmakom (Tabulatori se često koriste iz istorijskih razloga, ali se koriste i razmaci). Redovi komentara mogu biti uključeni i označeni su heš znakom (#) na prvoj poziciji takvih redova. Potpuno prazni redovi u datoteci se zanemaruju.
Ako se datoteka Hosts promeni iz podrazumevanih vrednosti, uspostavljanje početnih vrednosti može pomoći u rešavanju nekih problema sa povezivanjem.
Rezoluciju
Da biste vratili datoteku Hosts na podrazumevanu vrednost, pratite ove korake u skladu sa svojim operativnim sistemom:
Da biste vratili podrazumevanu datoteku hosta na podrazumevani, pratite ove korake:
1. Otvorite beležnicu. Da biste to uradili, potražite stavku "Beležnica", a zatim dodirnite ikonu Beležnica ili kliknite na nju.
2. Kopirajte sledeći tekst, a zatim nalepite tekst u datoteku:
-
# 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
3. U meniju Datoteka izaberite stavku Sačuvaj kao, otkucajte "hostovi" u polju Ime datoteke (kao što je prikazano na sledećoj slici), a zatim sačuvajte datoteku na radnoj površini.
4. Zatvorite beležnicu.
5. Potražite %WinDir%\System32\Drivers\Itd, a zatim izaberite ikonu fascikle "Datoteka".
6. Dodirnite i držite datoteku Hosts ili kliknite desnim tasterom miša na nju, izaberite stavku Preimenuj , a zatim preimenujte datoteku kao "Hosts.old".
7. Kopirajte ili premestite datoteku Hosts koju ste kreirali u 3. koraku sa radne površine u fasciklu %WinDir%\System32\Drivers\Etc . Ako budete upitani da unesete administratorsku lozinku, kliknite na dugme Nastavi.
Da biste vratili podrazumevanu datoteku hosta na podrazumevani, pratite ove korake:
1. Otvorite beležnicu. Da biste to uradili, potražite stavku "Beležnica" pomoću aplikacije Cortana, a zatim dodirnite ikonu Beležnica ili kliknite na nju.
2. Kopirajte sledeći tekst, a zatim nalepite tekst u datoteku:
-
# 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
3. U meniju Datoteka izaberite stavku Sačuvaj kao, otkucajte "hostovi" u polju Ime datoteke (kao što je prikazano na sledećoj slici), a zatim sačuvajte datoteku na radnoj površini.
4. Zatvorite beležnicu.
5. Potražite %WinDir%\System32\Drivers\Etc using Cortana, a zatim izaberite ikonu fascikle "Datoteka".
6. Dodirnite i držite datoteku Hosts ili kliknite desnim tasterom miša na nju, izaberite stavku Preimenuj , a zatim preimenujte datoteku kao "Hosts.old".
7. Kopirajte ili premestite datoteku Hosts koju ste kreirali u 3. koraku sa radne površine u fasciklu %WinDir%\System32\Drivers\Etc . Ako budete upitani da unesete administratorsku lozinku, kliknite na dugme Nastavi.
Da biste vratili podrazumevanu datoteku hosta na podrazumevani, pratite ove korake:
1. Otvorite beležnicu. Da biste to uradili, brzo prevucite sa desne ivice ekrana, dodirnite stavku Pretraga, otkucajte Beležnica, a zatim dodirnite ikonu Beležnica. Ili, ako koristite miš, postavite pokazivač u gornji desni ugao ekrana, pomerite pokazivač miša nadole, izaberite stavku Pretraga, otkucajte Beležnica, a zatim izaberite stavku Beležnica.
2. Kopirajte sledeći tekst, a zatim nalepite tekst u datoteku:
-
# 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
3. U meniju Datoteka izaberite stavku Sačuvaj kao, otkucajte "hostovi" u polju Ime datoteke (kao što je prikazano na sledećoj slici), a zatim sačuvajte datoteku na radnoj površini.
4. Zatvorite beležnicu.
5. Otvorite fasciklu %WinDir%\System32\Drivers\Itd. Da biste to uradili, pratite ove korake:
-
A. Brzo prevucite sa desne ivice ekrana, dodirnite stavku Pretraga, otkucajte tekst pokreni, a zatim dodirnite ikonu Pokreni. Ako koristite miš, postavite pokazivač u gornji desni ugao ekrana, pomerite pokazivač miša nadole, izaberite stavku Pretraga, otkucajte tekst pokreni, a zatim kliknite na ikonu Pokreni.
-
B. U polju Otvori otkucajte %WinDir%\System32\Drivers\Itd, a zatim kliknite na dugme U redu.
6. Izaberite datoteku Hosts, izaberite stavku Preimenuj, a zatim preimenujte datoteku kao "Hosts.old".
7. Kopirajte ili premestite datoteku "Hosts" koju ste kreirali u 3. koraku u fasciklu %WinDir%\System32\Drivers\Itd. Ako se zatraži da unesete administratorsku lozinku, dodirnite ili kliknite na dugme Nastavi.
Da biste sami vratili datoteku Hosts na podrazumevani, pratite ove korake:
-
Kliknite na dugme Start, izaberite stavku Pokreni, otkucajte Notepad, a zatim kliknite na dugme U redu.
-
Potražite svoju verziju operativnog sistema Windows sa dolenavedene liste, a zatim kopirajte sledeći tekst za tu verziju operativnog sistema Windows, a zatim ga nalepite u beležnicu:
-
Za 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
-
Za Windows Vista ili 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
-
Za Windows XP ili 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
3. U meniju Datoteka izaberite stavku Sačuvaj kao, otkucajte "hostovi" u polju Ime datoteke, a zatim sačuvajte datoteku na radnoj površini.
4. Izaberite stavku Pokreni >, otkucajte %WinDir%\System32\Drivers\Itd, a zatim kliknite na dugme U redu.
5. Izaberite datoteku hostova i preimenujte je "Hosts.old".
6. Kopirajte ili premestite datoteku "Hosts" koju ste kreirali u 3. koraku u fasciklu %WinDir%\System32\Drivers\Itd. Ako budete upitani da unesete administratorsku lozinku, kliknite na dugme Nastavi.
Više informacija
Podrška za Windows XP je završena
Microsoft je prekinuo podršku za Windows XP 8. aprila 2014. Ova promena je uticala na ispravke softvera i bezbednosne opcije. Saznajte šta to znači za vas i kako da ostanete zaštićeni.
Podrška za Windows Server 2003 je završena 14. jula 2015.
Microsoft je završio podršku za Windows Server 2003 14. jula 2015. Ova promena je uticala na ispravke softvera i bezbednosne opcije. Saznajte šta to znači za vas i kako da ostanete zaštićeni.