Файл HOSTS отсутствует в Windows 11 или Windows 10 — что делать?

Аватар автора
Мастерские Советы
✅ Что делать, если в Windows 11/10 нет файла hosts в папке по умолчанию. Возможные причины и варианты решения. 00:00 Расположение hosts 00:24 Скрытые и системные файлы 01:00 Пустой файл hosts 01:21 Расположение hosts в реестре 02:16 Восстановление файла hosts 03:43 Если hosts перемещен Папка файла hosts по умолчанию: C:WindowsSystem32driversetc Win+R - regedit (запустить редактор реестра) Путь в реестре: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters Параметр: DataBasePath Значение по умолчанию: %SystemRoot%System32driversetc Код файла hosts по умолчанию: # 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: # # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost

0/0


0/0

0/0

0/0