Thursday, May 6, 2010

Windows etc/hosts File Shortcut

When you have a web server cluster behind the LB, and you need to do a timely uni-cast test of each/any server by putting a host entry for some URL, i know you have to play with a lot of host entry / delete.
To quickly access the hosts file go Start -> Run -> Type drivers -> Ok.

This will bring up the folder before the hosts file, just double click into the etc directory from there - > right click on host file and open with your favorite text editor.

There in you put host entry. Syntax : <(host)URL>

e.g.

10.99.1.44 skipfast.blogspot.com

This etc/host file can be put in a short cut - which makes life easier if your opening and closing the same quite frequently -

Right click on the desktop -> Create Shortcut and put the below as target

%windir%\system32\notepad.exe "c:\WINDOWS\system32\drivers\etc\hosts"

Cheers!!! Save time, skip fast...

D E B U

No comments:

Post a Comment

  Expand your network at ease : Six Degrees of Separation! PC: Psych2Go Did you know that you are just six connections away from any person ...