Posts Tagged ‘restore hosts file windows 10’

How to Reset Hosts File Back to Default in Windows 10

November 1st, 2018 by Admin

Every Windows version comes with a Hosts file which provides a simple mechanism to redirect website to IP address. If the HOSTS file is modified incorrectly or maliciously, it can break your Internet. In this tutorial we’ll show you how to easily reset the HOSTS file (C:\Windows\System32\drivers\etc\hosts) back to default in Windows 10.

How to Reset Hosts File Back to Default in Windows 10?

By default, the HOSTS file is protected by the operating system so you’re unable to edit it without admin rights. Here we’re going to open the HOSTS file with Notepad and restore its content back to default:

Click the Start button and type notepad. Right-click the Notepad app appeared in the search result, and then select “Run as administrator“.

With Notepad open in administrator mode, you’re ready to open the HOSTS file. Click on the File menu and select Open.

Browse to the directory C:\Windows\System32\drivers\etc\hosts. Change the file filter drop-down box from “Text Documents (*.txt)” to “All Files“, and select the HOSTS file and click Open.

Now, paste the following text into Notepad:

# 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

Click on the File menu and Save. Now you’ve successfully reset the HOSTS file back to default in Windows 10. For Windows 8/7/Vista, the contents of the HOSTS file are different and you can copy them from Microsoft’s website.