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;
- Right-click on the application and pick Run as Administrator option;
- Press Yes on the UAC screen
Navigate to File > Open
Enter C:\Windows\System32\drivers\etc;
- 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;
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;
- Right-click on it and pick Run as Administrator option;
- Press File > Open;
- Type C:\Windows\System32\drivers\etc;
Select All Files on the right corner and open hosts file;
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;
Select Run as Administrator and on UAC press Yes;
Open the Notepad and select File > Open;
Enter C:\Windows\System32\drivers\etc;
On the right corner select All Files option and find hosts file;
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
Leave A Comment?