Reset HOSTS File Back To Default on Windows

Configurare noua (How To)

Situatie

Hosts file is one of the components of an operating system whose main purpose is to guide hostnames to numerical Internet Protocol (IP) addresses. In other words, it helps to address system nodes in the computer network to identify and locate a host in the IP network. Experts note that it is a regular part of operating system’s IP implementation.

Solutie

Pasi de urmat

Method to reset Windows 10 hosts file

Press Start at the bottom-left corner of the screen and search for Notepad;

notepad as administrator

  • Right-click on the application and pick Run as Administrator option;
  • Press Yes on the UAC screen

open files on notepad

Navigate to File > Open

open windows hosts file via notepad

Enter C:\Windows\System32\drivers\etc;

search for hosts file via notepad

  • Search for All Files option on the top-right corner and select it;
  • Now you see all files and should indicate hosts file to open it;

save files on notepad

Paste the following text and save it by pressing File > Save:

# 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

Reset hosts file back to default on Windows 8 and Windows 8.1

  • Click on the Start button and type Notepad into the search;

notepad as administrator

  • Right-click on it and pick Run as Administrator option;

open files on notepad

  • Press File > Open;

open windows hosts file via notepad

  • Type C:\Windows\System32\drivers\etc;

search for hosts file via notepad

Select All Files on the right corner and open hosts file;

save files on notepad

Paste the following text inside the document and navigate to File > Save:

# 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

Steps to reset Windows 7 hosts file

  • Navigate to the bottom-left corner of the screen and press Start;
  • Type Notepad and right-click on it;

notepad as administrator

Select Run as Administrator and on UAC press Yes;

open files on notepad

Open the Notepad and select File > Open;

open windows hosts file via notepad

Enter C:\Windows\System32\drivers\etc;

search for hosts file via notepad

On the right corner select All Files option and find hosts file;

save files on notepad

Open it, copy the following text inside and select File > Save:

# 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

Tip solutie

Permanent
Etichetare:

Voteaza

(1 din 1 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?