On occasion you will need to edit the hosts file on your machine. hosts files would be massive documents used to aide the network name resolution.Sometimes because of an attack or prank, and others so that you can simply and freely control access to websites and network traffic. Microsoft kept the hosts file alive in Windows networking which is why it varies very little whether used in Windows, OS X or Linux.The syntax stays mostly the same across all platforms.

updating host file in vista-28

We also were not able to get to it in Google Chrome… Also for more info on editing your Hosts file, check out The Geek’s article on how to create a shortcut to quickly edit your Hosts file.

In Ubuntu 10.04 and most Linux distro’s you can edit the hosts file directly in the terminal.

You can use your favorite editor or even open your favorite GUI text editor. Like Windows 7, Ubuntu’s hosts file is located in the here.

Just search for Notepad, then right-click on Notepad in the search results list, and choose to run it as administrator.

If you’re using Windows 10 this will be on the Start Menu.

If you’re using Windows 10, it’ll look more like this: Once you’ve done so, open up the following file using the File - Now that you have edited your Hosts file make sure to save it.Now notice if we try to access Facebook in IE we can’t get to the page.We can use that for the basic example for the typical syntax.The first part will be the location to redirect the address to, the second part will be the address that you will want to redirect, and the third part is the comment.They can be separated by a space, but for ease of reading are typically separated by one or two tabs.Unfortunately Windows 8 or 10 makes it annoying to open apps as administrator — but it’s not too difficult.