Файл 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 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

Файл Hosts для Windows Vista:

# Copyright (c) 1993-2006 MicrosoftCorp. # # 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

Файл Hosts для Windows 7:

# Copyright (c) 1993-2009 MicrosoftCorp. # # 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

Файл Hosts для Windows 8:

# Copyright (c) 1993-2009 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 handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost

Добавить комментарий

Ваш адрес email не будет опубликован.