how to set etc/hosts file in windows 7

Page 2 of 2 FirstFirst 12

  1. Posts : 5,747
    7600.20510 x86
       #11

    From an elevated command prompt, run these commands and hit enter after each. You may copy/paste them:

    “%PROGRAMFILES%\Bonjour\mDNSResponder.exe” -remove

    regsvr32 /u “%PROGRAMFILES%\Bonjour\mdnsNSP.dll”

    Reboot and then delete the Bonjour folder in program files. Problem solved.
      My Computer


  2. Posts : 8
    windows7
    Thread Starter
       #12

    Problem resolved: it has nothing to do with Bonjour.

    the file hosts is saved as hosts.bak or hosts.txt by Notepad!!!!

    use gvim instead.

    btw, how do you turn on file extension in windows 7?

    Simon
      My Computer


  3. Posts : 5,747
    7600.20510 x86
       #13

    That's why you use save as, then change "text documents" to "all files" in notepad.

    You could tell when something is wrong when it doesn't ask to overwrite the original file.

    Glad it's fixed.
      My Computer


  4. Posts : 22,814
    W 7 64-bit Ultimate
       #14

    Seven Forums now has a tutorial on the subject of the Hosts File, it can be view at the link below.

    Hosts File : Use in Windows 7 / Vista
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:46.
Find Us