Updating the hosts file in windows vista

This post looks at how to edit the hosts file on Windows Vista using notepad.The hosts file contains a list of IP address to hostname mappings and can be useful especially for web developers if they need to point a hostname to a specific IP address while developing or testing a website, without having to change settings on a DNS server.Right click the "Notepad" icon and select the "Run as administrator option as shown in the screenshot below.The user account control dialog will then pop up and ask you if you want to run notepad as administrator.1) Browse to Start - Open 5) Browse to "C:\Windows\System32\Drivers\etc" 6) Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)" 7) Select "hosts" and click "Open" 8) Make the needed changes and close Notepad. # The IP address and the host name should be separated by at least one # space. Now if I could only find a way (if at all) to customize my Explorer toolbar (like I used to be able to in XP). Update, I figured it out, I was editing a copy of the hosts file in a separate directory (e.g. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.On Linux and Unix systems it is typically at /etc/hosts and on Windows systems (Windows 2000, XP, Vista) at c:\windows\system32\drivers\etc\hosts If you open the hosts file on Windows Vista and then attempt to save it as a regular user, you will get an error message as show in the screenshot below ("Cannot create the c:\windows\system32\drivers\etc\hosts file.

updating the hosts file in windows vista-18updating the hosts file in windows vista-71updating the hosts file in windows vista-74

To do this, locate the "Notepad" program on the start menu (it's under "All Programs" then the "Accessories" folder.Editing the HOSTS file might come in handy if you want to make custom domain redirects, block websites, or remove malicious entries set by malware. However, you might run into problems when trying to make changes to this file in some versions of Windows.This is most likely due to permission issues; there's an explanation on how to bypass that below.Then, saving the HOSTS file over the original can be performed without having to verify your admin credentials.If you still can't save to the HOSTS file location, you probably don't have the correct permissions to be editing files in that folder.

Leave a Reply