Файл hosts - що має бути


Системний файл hosts — це текстовий файл, в якому міститься локальна база даних доменних імен та IP-адрес. Запит до файлу hosts має більший пріоритет перед зверненням до DNS-серверів. Цим і користуються різні віруси або шкідливі програми, підміняючи його вміст на свої дані.
Де знаходиться файл hosts?
За замовчуванням, системний файл hosts розташований в каталозі C:\Windows\system32\drivers\etc.
Щоб до нього потрапити, треба зайти в меню Пуск > Виконати або натиснути комбінацію клавіш WIN R. У вікні Запуск програми вводимо адресу:
C:\Windows\system32\drivers\etc
або
%WinDir%\system32\drivers\etc
Натискаємо кнопку Enter.

windows-hosts.

Щоб його відкрити - натискаємо на ньому правою кнопкою миші і в меню вибираємо пункт "Відкрити за допомогою блокнота
Що повинно бути в файлі hosts за замовчуванням?

Файл Hosts для Windows XP:

# Copyright (c) 1993-1999 MicrosoftCorp. # # This is a sample HOSTS file used by Microsoft TCP/IP для 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


Файл Hosts для Windows Vista:

# Copyright (c) 1993-2006 MicrosoftCorp. # # This is a sample HOSTS file used by Microsoft TCP/IP для 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

Файл Hosts для Windows 7:

# Copyright (c) 1993-2009 MicrosoftCorp. # # This is a sample HOSTS file used by Microsoft TCP/IP для 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

Файл Hosts для Windows 8:

# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP для 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