How to Reset Hosts File to Default

Note: The hosts file is in C: > Windows > System32 > drivers > etc.

Here is how you can reset the hosts file in Windows 10:

Open Notepad.

Copy and paste the following into the Notepad file:

# 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:


# # source server

# # x client host

# localhost name resolution is handled within DNS itself.

# localhost

# ::1 localhost

Press Ctrl + S. In the pop-up, specify the following filename: “hosts”

Make sure you have entered the filename with quotation marks as above.

Press the Save button.

Copy or cut the hosts file you have created.

Now go to C: > Windows > System32 > drivers > etc folder.

Change the name of the hosts file as hosts.bak. Hit Continue. Hit Yes.

Paste the previously copied or cropped file into the etc folder. Hit Continue.

That’s all.


Categorized as Windows 10

By Thirumalraj

How To Raj was founded and run by Thirumalraj, an MCA graduate. Since August 2015, he has been blogging on his other blog, Technology Hint. Learn more about How To Raj here.