I believe everyone has encountered the problem of the Hosts file invalidation. What is going on? The failure of the Hosts file has caused me a lot of trouble in my work. How can I solve this problem? I believe many users are still not clear, the following small series for everyone to introduce the solution to the failure of the Hosts file.
Win8 system Hosts file to test failure phenomenon:
1, for everyone to be a demonstration test, see below:
2, hosts file path is And only one row mapping ensures that there are no other distracters. Use ipconfig /flushdns to clean up the DNS cache, and in fact I stopped the DNS Client service. Then continue to ping, still returning the address of the real DNS resolution. As shown in FIG:
3, the system is also visible permission assignment. The permissions of the account in my own account and the Admin group below are also completely controlled. As shown:
This is the case, I do not know why the recent sudden failure.
Win8 system Hosts file failure recovery method:
1, edit the access permissions of the etc folder, add the Network Service security principal and give at least read permissions, and then restart the DNS Client service Just fine. Currently my hosts are all fine.
2, press Win + X, click “ command prompt (administrator) & rdquo;, enter the following command in turn, press Enter (Enter) to execute:
SC stop Dnscache
SC config Dnscache obj= “NT AUTHORITY\\NetworkService”
TAKEOWN /F “%windir%\\System32\\drivers\\etc” /A
icacls “%windir %\\System32\\drivers\\etc” /grant “NT AUTHORITY\\NetworkService”:RX
SC start Dnscache
Command Explanation:
Stop Dnscache (DNS Client) Service
Configure the security principal running the Dnscache service as Network Service
Give the etc folder ownership to the administrator group
Add the read in the etc folder for the Network Service Take and execute access rights
Start Dnscache service
The above is the solution to the failure of the Hosts file introduced by Xiaobian. If the user encounters the problem that the Hosts file is invalid, you can follow the above steps. Take action.
Win8 system to add virtual network card operation and Win7 is not the same, many friends do not know
for the first time after Win8.1 installation 1. You will be prompted to select the background color.
The Microsoft Windows 7 operating system is the first Windows operating system to natively support t
friends using Win8 system will receive the system update patch prompts, sometimes for some reasons w
Win8 VirtualBox path problem and VDI to VHD
What should I do if the Win8 system has a black screen after updating the patch?
Windows 8 M3 Build 7955 installation screenshot
Windows 8 has a unique anti-blocking hacker and virus function
How to use Win8 step recorder?
Win8 failed to install KB3081455 patch
Win8.1 Update1 update upgrade method
ATM cash machine has been allowed to use Windows 8.1 system
Open Aero transparency for Win8
Win8 how to set the recovery screen saver does not prompt for password
What should I do if I want to enter a password every time git is submitted in Ubuntu?
What is sygate (with method of use)
Unique features of Windows 8 system (2)
User Guide: Uncovering the difference between 54M and static 108M
Win7 system booting up checking file system on how to solve
Computer Technology: Win7 Group Policy Setting Method
The latest win10 preview version 10041 update content Daquan
Keys and tools that can activate WIN7 or OFFICE2010
Win 7 genuine system query for more detailed authorization information