The first method: here is a relatively simple method, which can generally solve this problem:
Restart two service components, DNS client and DHCP client, in Control Panel → Administrative Tools → Services, and set it to automatic if it is not started automatically.
The reason is that these two services are disabled after some optimization files are run.
The second method: When you want to solve the problem of connecting with DNS, it is very necessary to clear the DNS cache and force Windows to make a new resolution of a host name. You can use the console command IPConfig to observe the cache capacity and clear the cache.
You can display the size of the cache by the following command and send the result to the More command so that the result can be displayed on one page at a time.
Ipconfig /displaydns | more
Use the following command to clear the cache: ipconfig /flushdns.
Use the following command to clear the cache: ipconfig /displaydns.
The third method: Because of the rampant APR virus, we have to use WINDOWS frequently to repair local connections. The steps are as follows
1. Clear the ARP cache and use arp -d * instead.
2. clear NETBT, but use nbtstat -R r.
3. Clear DNS cache
4. registering with DNS may be replaced by ipconfig/flushdns.
When going to the third step, the prompt "clearing DNS cache failed", so Baidu immediately looked for the answer. After testing, it is found that if DHCP client service is disabled, it will appear. It will be repaired after it is enabled, and everything is normal!