Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How can I reset the Hosts file back to the default in Windows 10?


  • Please log in to reply
9 replies to this topic

#1 baazi

baazi

  • Members
  • 36 posts
  • OFFLINE
  •  
  • Local time:07:54 PM

Posted 11 February 2016 - 02:34 PM

How can I reset the Hosts file back to the default in Windows 10?

BC AdBot (Login to Remove)

 


#2 JohnC_21

JohnC_21

  • Members
  • 24,826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:54 PM

Posted 11 February 2016 - 02:38 PM

Edit it with Notepad and use the Host File shown here



#3 Sintharius

Sintharius

    Bleepin' Sniper


  • Members
  • 5,639 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:The Netherlands
  • Local time:12:54 AM

Posted 11 February 2016 - 02:55 PM

For a quick solution you can use Xplode's RstHosts.

#4 Smsec

Smsec

  • Members
  • 133 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:54 PM

Posted 11 February 2016 - 03:59 PM

Microsoft has an article on resetting the hosts file. The even provide the text for each operating system that you can copy and paste to restore the file the MS default configuration

 

https://support.microsoft.com/en-us/kb/972034

 

At times, I've not been able to edit the hosts file with anything but notepad. Some antivirus programs prevent it from being edited by any third party programs. Don't know if this will happen to you but something to keep in mind if you make changes and they won't save. 


Edited by Smsec, 11 February 2016 - 04:04 PM.


#5 baazi

baazi
  • Topic Starter

  • Members
  • 36 posts
  • OFFLINE
  •  
  • Local time:07:54 PM

Posted 15 February 2016 - 06:53 AM

Microsoft has an article on resetting the hosts file. The even provide the text for each operating system that you can copy and paste to restore the file the MS default configuration

 

https://support.microsoft.com/en-us/kb/972034

 

At times, I've not been able to edit the hosts file with anything but notepad. Some antivirus programs prevent it from being edited by any third party programs. Don't know if this will happen to you but something to keep in mind if you make changes and they won't save. 

 

Hi Smsec,

 

I followed your instructions by going to the site you provided in your reply but resetting host file for Windows 10 is not mentioned there.  They have it until Windows 8.1 & 8.

 

#6 Agouti

Agouti

  • Members
  • 1,548 posts
  • OFFLINE
  •  
  • Local time:07:54 PM

Posted 15 February 2016 - 07:21 AM

I followed your instructions by going to the site you provided in your reply but resetting host file for Windows 10 is not mentioned there.  They have it until Windows 8.1 & 8.

The instructions for Windows 10 are the same as Windows 8 & 8.1.



#7 Smsec

Smsec

  • Members
  • 133 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:54 PM

Posted 15 February 2016 - 10:56 AM

A couple of things not covered in the article:

 

When you do a search for Notepad, right click on the notepad icon and choose "run as administrator". 

 

When you browse to the hosts file location with notepad you may need to change the dropdown box from "text files *.txt" to "all files" or see the hosts file listed.



#8 Smsec

Smsec

  • Members
  • 133 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:54 PM

Posted 15 February 2016 - 03:24 PM

Here is the hosts file from my Windows 10 computer

 

# Copyright © 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
 
# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost


#9 ScathEnfys

ScathEnfys

    Bleeping Butterfly


  • Members
  • 1,375 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Deep in the Surface Web
  • Local time:07:54 PM

Posted 15 February 2016 - 03:39 PM

Most hosts files have all lines commented out IIRC. Possibly a line like
127.0.0.1 localhost
and maybe
::1 localhost
. Those should be the only lines that do not begin with a # - any line that begins with a # is ignored by windows.
Proud system builder, modder, and watercooler.

GitHub | SoundCloud | Keybase

#10 baazi

baazi
  • Topic Starter

  • Members
  • 36 posts
  • OFFLINE
  •  
  • Local time:07:54 PM

Posted 10 August 2016 - 11:26 AM

Smsec, on 15 Feb 2016 - 11:56 AM, said:Smsec, on 15 Feb 2016 - 11:56 AM, said:

A couple of things not covered in the article:

 

When you do a search for Notepad, right click on the notepad icon and choose "run as administrator". 

 

When you browse to the hosts file location with notepad you may need to change the dropdown box from "text files *.txt" to "all files" or see the hosts file listed.

 

Thank you Smsec & others for your help. 


Edited by baazi, 10 August 2016 - 11:27 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users