Steps to Reset Host File Back to Default in Windows 10

Ivan Jenic By: Ivan Jenic
2 minute read
Reset Host File Default Windows 10

For various PC problems, we recommend this tool.

This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues now in 3 easy steps:

  1. Download this PC Repair Tool rated "Excellent" on TrustPilot.com.
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues with Patented Technologies (requires upgrade).

If you find that your Host file has  changed for some reason, don’t panic, you can easily bring it back to default. And in this article, we’ll show you how to set the default values for your Host file in Windows 10.
host file wind8apps

How do I reset my host file to default?

In Windows, the Host file is used to map host names to IP addresses, and it should not be changed. But if you notice any changes in this file, here’s what you need to do:

For various PC problems, we recommend to use this tool.

This tool will repair most computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Quickly fix PC issues and prevent others from happening with this software:

  1. Download ReimagePlus (100% safe download and endorsed by us).
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues.
  1. Open File Explorer and enter the following location:
    • C:WindowsSystem32\drivers\etc
  2. Find Host file, and rename it to host.bak (You may be required to take ownership of the file, first)
  3.  Paste the following text in Notepad:
    • # 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:
      #
      # 102.54.94.97 rhino.acme.com # source server
      # 38.25.63.10 x.acme.com # x client host


      For various PC problems, we recommend this tool.

      This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues now in 3 easy steps:

      1. Download this PC Repair Tool rated "Excellent" on TrustPilot.com.
      2. Click “Start Scan” to find Windows issues that could be causing PC problems.
      3. Click “Repair All” to fix all issues with Patented Technologies (requires upgrade).

      # localhost name resolution is handle within DNS itself.
      # 127.0.0.1 localhost
      # ::1 localhost
  4. Save it to C:WindowsSystem32driversetc and close the document

Your Host file is now back to its default values, but it’s recommended to create a backup copy of the Host file, so you can easily replace it again, if needed. You can use your old Host file as a backup, and keep it in the Drivers folder, right next to the original.

Resetting your Host file is a very useful solution for fixing connectivity issues on your Windows computer. So, in case your Internet connection is not as stable as it should be, use this method to fix it.

It is worth mentioning that your Host file may sometimes be locked for editing. If this is the case, we’ve got your back. We already compiled a list of solutions for this particular issue and you can check them out in this guide.

If you have any comments or suggestions, please write use the comments section below.

RELATED GUIDES TO CHECK OUT:

Editor’s Note: This post was originally published in April 2015 and has been since updated for freshness, and accuracy.

For various PC problems, we recommend this tool.

This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues now in 3 easy steps:

  1. Download this PC Repair Tool rated "Excellent" on TrustPilot.com.
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues with Patented Technologies (requires upgrade).

Discussions

Next up

More uncertainty for Microsoft’s Windows 10 October Update

Giles Ensor avatar. By: Giles Ensor
3 minute read

Oh dear. It’s been a pretty bad month for Microsoft concerning its Windows 10 October 1809 Update release. Microsoft eventually released the update a couple […]

Continue Reading

Confirmed: Microsoft now accepting ARM64 apps on its Store

Giles Ensor avatar. By: Giles Ensor
2 minute read

Yesterday, Microsoft released Visual Studio 15.9. With it came the announcement that “developers now have the officially supported SDK and tools for creating 64-bit ARM […]

Continue Reading

Update KB4470200 blocks problematic Insider build on Nuvoton PCs

Giles Ensor avatar. By: Giles Ensor
2 minute read

The cumulative update KB4470200 for Windows 10 Fast Ring has just launched in the November Patch Tuesday roll out, and it packs two important fixes. Grab […]

Continue Reading