Solutions to DNS failures caused by virus software
The problem is that the DNS is invalid and the ping to the domain name always fails.
Today, at work in the morning, I found that the git that comes with Eclipse is always unable to update the code. I tried it more than 10 times before and after, but all failed. The prompt"Cannot open git-upload-pack ". Baidu found no similar information as my questions. Finally, I had to read the log printed by Eclipse.
Java.net. UnknownHostException", Git does not know this host.
The following are 10 solutions I have tried:
2. log out of your computer.
8. Network diagnosis
10. different projects and projects of one Eclipse.
Finally, I found the answer on Hexun's blog:
Complete dos information can be found below:
C: \ Users \ Administrator> ping baidu.com
The Ping request cannot find the host baidu.com. Check the name and try again.
C: \ Users \ Administrator> ipconfig/flushdns
Windows IP configuration
The DNS resolution cache is successfully refreshed.
C: \ Users \ Administrator> ipconfig/registerdns
Windows IP configuration
You have initialized the DNS resource records for all the adapters that have registered this computer. Any errors will take 15 minutes.
Report in Event Viewer.
C: \ Users \ Administrator> netsh winsock reset
The Winsock directory is successfully reset.
You must restart the computer to complete the reset.
C: \ Users \ Administrator> ping baidu.com
Pinging baidu.com [220.181.57.217] with 32 bytes of data:
Reply from 220.181.57.217: byte = 32 time = 145 ms TTL = 52
Reply from 220.181.57.217: byte = 32 time = 163 ms TTL = 52
Reply from 220.181.57.217: byte = 32 time = 162 ms TTL = 52
Reply from 220.181.57.217: byte = 32 time = 79 ms TTL = 52
Ping statistics for 220.181.57.217:
Packet: Sent = 4, received = 4, lost = 0 (0% lost ),
Estimated round-trip time (in milliseconds ):
Minimum = 79 ms, maximum = 163 ms, average = 137 ms
CSDN2014 blog Star Selection, vote for Xiao Lei