hosts file stopped working unexpectedly


  1. Posts : 6
    Windows 7 Ultimate x86
       #1

    hosts file stopped working unexpectedly


    Hi lads!

    Yesterday I updated Win7 x86 to SP1 and today found out that all my local virtual hosts has stopped working.

    First, I checked apache service - it was ok, but I restarted it.

    Then I tried to ping one of local domain names:

    Code:
    C:\Users\evgeny g likov>ping aaa1
    Ping request could not find host aaa1. Please check the name and try again.
    I was thinking, SP1 setup just wiped all additions out of hosts file, but no:

    Code:
    127.0.0.1    localhost
    127.0.0.1    aaa1
    127.0.0.1    aaa2
    127.0.0.1    aaa3
    127.0.0.1    aaa4
    127.0.0.1    aaa5
    127.0.0.1    bin.likov.spb.ru.local
    127.0.0.1    likov.spb.ru.local
    127.0.0.1    mycodb.ru.local
    127.0.0.1    votdermo.ru.local
    Then I tried:
    - re-create hosts file
    - flush dns
    - disable antivirus (nod32 v4)
    - reboot system
    - disable IPv6 on the main interface

    Do you have any ideas?
      My Computer


  2. Posts : 6
    Windows 7 Ultimate x86
    Thread Starter
       #2

    (still not) Solved, I think.

    Reading about running (and stopped) services, I learned

    If the service is stopped, DNS name will continue to be resolved.
    Well, I stop the DNS Client service. Hosts substitutions start working.
    Last edited by evgenylikov; 27 Feb 2011 at 14:04. Reason: change "solved" to "still not solved"
      My Computer


  3. Posts : 968
    Windows 7 Ultimate x64
       #3

    Make sure that host file is set to read-only as well so it can't be re-written by only you and not something else....
      My Computer


  4. Posts : 6
    Windows 7 Ultimate x86
    Thread Starter
       #4

    Thank, Seth500. Access to hosts file is granted to SYSTEM and Administrators.
      My Computer


  5. Posts : 6
    Windows 7 Ultimate x86
    Thread Starter
       #5

    After reboot hosts is not working again. DNS Client is stopped.
      My Computer


  6. Posts : 6
    Windows 7 Ultimate x86
    Thread Starter
       #6

    Solved again, I think.

    I know nothing about reasons, just magika. After half of hour of checking parameters of Windows, I granted special access to file hosts for NETWORK SERVICE user. Then I run DNS Client service.

    Now it work.
      My Computer


  7. Posts : 6
    Windows 7 Ultimate x86
    Thread Starter
       #7

    Still ok.
      My Computer


 

  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 01:52.
Find Us