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

8c tips for Freshers / NCG's

I have been having a great company with some of the very talented NCG’s ( New College Hires/ Grads ) last ~2yrs.  I work for Intuit I...