Note, the HOSTS file is in use when Windows is running and can't be directly modified. It can be done in DOS but a simpler method is to use a program to do it. Hostman is a freeware I've used several times and works fine.
http://www.haztek-software.com/?page=hostman