How to add/remove entry from hostfile

You can just open it up as a text file and edit it from your favorite text editor.

"notepad c:\windows\system32\drivers\etc\hosts"
 
Found this file=hosts without an extention, but cannot save it, if saved as .txt it is ignored.

:mad: Inside the file:

# Copyright (c) 1993-1999 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

127.0.0.1 localhost
# Start of entries inserted by Spybot - Search & Destroy
# End of entries inserted by Spybot - Search & Destroy

IPCONFIG:
If i use "ipconfig /displaydns" after I used Spybot to enter it's hostfile list, I found that my own basic entries like localhost and local network is missing, and only some of the Spybot list is present, not all.....If I retract the Spybot list from Spybot, my basic list appears again when "ipconfig" is displayed from CMD prompt.

;)
Question:
Why is this happening ?
 
The easiest way to fix your issue is to go into Windows Explorer--At the top Tools-->Folder Options-->View-->Hide Extensions for Known File Types. Toggle that off.

Then edit hosts and save as hosts the extension will be kept off.

What's happening now is that you are hiding the extension, so Notepad is trying to save as txt.

You can always toggle this back later.

*****Easier still******

If you prefer you could always drop to a Command Prompt window, navigate to that directory and rename it via the move command.

--Jeff
 
Back
Top