hosts file stopped working unexpectedly

evgenylikov

New member
Local time
4:50 AM
Messages
6
Location
russia
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 My Computer

OS
Windows 7 Ultimate x86
CPU
c2d
Motherboard
don't know
Memory
4 Gb
Graphics Card(s)
don't know
Sound Card
usb speaker
Monitor(s) Displays
samsung 19" and samsung 17"
Screen Resolution
1280x1024
Hard Drives
400 Gb for system, 1.2 Tb for storage and backup, 600 Gb spare system disk.
PSU
don't know
Case
bought in 2002
Cooling
huge passive cooler that doesn't fit in case
Keyboard
Microsoft Natural
Mouse
Genius Netscroll 110
Internet Speed
don't know
Other Info
don't know
(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:

My Computer My Computer

OS
Windows 7 Ultimate x86
CPU
c2d
Motherboard
don't know
Memory
4 Gb
Graphics Card(s)
don't know
Sound Card
usb speaker
Monitor(s) Displays
samsung 19" and samsung 17"
Screen Resolution
1280x1024
Hard Drives
400 Gb for system, 1.2 Tb for storage and backup, 600 Gb spare system disk.
PSU
don't know
Case
bought in 2002
Cooling
huge passive cooler that doesn't fit in case
Keyboard
Microsoft Natural
Mouse
Genius Netscroll 110
Internet Speed
don't know
Other Info
don't know
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 My Computer

Computer Manufacturer/Model Number
Alienware
OS
Windows 7 Ultimate x64
CPU
I7
Motherboard
GA-X58-USB3
Memory
6 x 1.5V DDR3 DIMM sockets supporting up to 24 GB of system
Graphics Card(s)
GeForce GTX 580
Sound Card
Realtek ALC892 codec 2/4/5.1/7.1-channel
Monitor(s) Displays
NEC Display Solutions E321 Black 32"
Screen Resolution
1366 x 768
Hard Drives
OCZ Colossus LT Series OCZSSD2-1CLSLT1T 3.5" 1TB SATA II MLC Internal Solid State Drive
PSU
XFX Black Edition XPS-850W-BES 850W ATX12V
Case
Antec
Cooling
Zalman
Keyboard
Microsoft
Mouse
Microsoft
Thank, Seth500. Access to hosts file is granted to SYSTEM and Administrators.
 

My Computer My Computer

OS
Windows 7 Ultimate x86
CPU
c2d
Motherboard
don't know
Memory
4 Gb
Graphics Card(s)
don't know
Sound Card
usb speaker
Monitor(s) Displays
samsung 19" and samsung 17"
Screen Resolution
1280x1024
Hard Drives
400 Gb for system, 1.2 Tb for storage and backup, 600 Gb spare system disk.
PSU
don't know
Case
bought in 2002
Cooling
huge passive cooler that doesn't fit in case
Keyboard
Microsoft Natural
Mouse
Genius Netscroll 110
Internet Speed
don't know
Other Info
don't know
After reboot hosts is not working again. DNS Client is stopped.
 

My Computer My Computer

OS
Windows 7 Ultimate x86
CPU
c2d
Motherboard
don't know
Memory
4 Gb
Graphics Card(s)
don't know
Sound Card
usb speaker
Monitor(s) Displays
samsung 19" and samsung 17"
Screen Resolution
1280x1024
Hard Drives
400 Gb for system, 1.2 Tb for storage and backup, 600 Gb spare system disk.
PSU
don't know
Case
bought in 2002
Cooling
huge passive cooler that doesn't fit in case
Keyboard
Microsoft Natural
Mouse
Genius Netscroll 110
Internet Speed
don't know
Other Info
don't know
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 My Computer

OS
Windows 7 Ultimate x86
CPU
c2d
Motherboard
don't know
Memory
4 Gb
Graphics Card(s)
don't know
Sound Card
usb speaker
Monitor(s) Displays
samsung 19" and samsung 17"
Screen Resolution
1280x1024
Hard Drives
400 Gb for system, 1.2 Tb for storage and backup, 600 Gb spare system disk.
PSU
don't know
Case
bought in 2002
Cooling
huge passive cooler that doesn't fit in case
Keyboard
Microsoft Natural
Mouse
Genius Netscroll 110
Internet Speed
don't know
Other Info
don't know
Still ok.
 

My Computer My Computer

OS
Windows 7 Ultimate x86
CPU
c2d
Motherboard
don't know
Memory
4 Gb
Graphics Card(s)
don't know
Sound Card
usb speaker
Monitor(s) Displays
samsung 19" and samsung 17"
Screen Resolution
1280x1024
Hard Drives
400 Gb for system, 1.2 Tb for storage and backup, 600 Gb spare system disk.
PSU
don't know
Case
bought in 2002
Cooling
huge passive cooler that doesn't fit in case
Keyboard
Microsoft Natural
Mouse
Genius Netscroll 110
Internet Speed
don't know
Other Info
don't know
Back
Top