how to set etc/hosts file in windows 7

Page 1 of 2 12 LastLast

  1. Posts : 8
    windows7
       #1

    how to set etc/hosts file in windows 7


    I updated the Windows\System32\drivers\etc\hosts file to include static ip addresses of computers on my local network; just like I do it in Vista and XP. But now I tried to access the computers by name, it complains that host 'xyz' cannot be resolved. Why?

    Simon
      My Computer


  2. Posts : 5,747
    7600.20510 x86
       #2

    Maybe you have Bonjour service on your pc? Check for mdnsresponder.exe in task manager.

    Are you able to access the remote pcs by ip address?

    make sure that

    127.0.0.1 localhost

    it the first entry in the hosts file. Must be first.
      My Computer


  3. Posts : 5,642
    Windows 10 Pro (x64)
       #3

    You should not need to do that unless the other computers are not Windows computers. Windows automatically resolves computer names to IPs for those that respond to NetBIOS. Are you positive the items added to the hosts file were in fact saved? Are they correct? The hosts file is no different in how it was in previous versions of Windows.
      My Computer


  4. Posts : 5,747
    7600.20510 x86
       #4

    It's cool to do that like for instance if you just want to type

    router

    or

    bedroompc

    in the browser url box and hit enter, you're there. Necessity? No. Simplicty? Yes.
      My Computer


  5. Posts : 8
    windows7
    Thread Starter
       #5

    127.0.0.1 localhost
    ::1 localhost
    192.168.0.110 pmachine
    Bonjour Service is running under the 'Services' tab, how do i disable it?
      My Computer


  6. Posts : 8
    windows7
    Thread Starter
       #6

    The other machine is a linux server
      My Computer


  7. Posts : 8
    windows7
    Thread Starter
       #7

    Access to remote address by ip works fine
      My Computer


  8. Posts : 28,845
    Win 8 Release candidate 8400
       #8

    simonc said:
    I updated the Windows\System32\drivers\etc\hosts file to include static ip addresses of computers on my local network; just like I do it in Vista and XP. But now I tried to access the computers by name, it complains that host 'xyz' cannot be resolved. Why?

    Simon
    Hi and welcome

    how about a description or screenshot of the hosts file?

    thanks

    Kenn J++
      My Computer


  9. Posts : 8
    windows7
    Thread Starter
       #9

    hi Kenn,

    I posted earlier there are only 3 lines
    127.0.0.1 localhost
    ::1 localhost
    192.168.0.110 pmachine

    file location is Windows\System32\drivers\etc\hosts
    someone had mentioned that bonjour service messes up the hostname mapping, are you aware?
      My Computer


  10. Posts : 8
    windows7
    Thread Starter
       #10

    http://pmachine/simon

    Got a message DNS error - cannot find server from Google chrome
      My Computer


 
Page 1 of 2 12 LastLast

  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 10:23.
Find Us