problem symptom, DNS fails, ping domain name always fails.
Problem review: A few weeks ago, a group of friends in the group uploaded a virus software, I want to go to the test, and finally really poisoned. A few days ago, the software was uninstalled, last weekend to resolve the deletion of the last software caused by the inability to surf the internet. (Friendship hints, QQ computer housekeeper and other anti-virus software, in the face of new viruses, are clouds AH)
It was thought that the problem of surfing the internet had been solved last weekend. At that time, I found that the browser and QQ applications such as Internet access, I think it's all right.
today, when I was at work in the morning, I found that the git in eclipse was always unable to update the code, tried it 10 times before, failed, and prompted " cannot open git-upload-pack". Baidu, found no and my problem similar to the information. Finally, it was a last resort to look at the log logs that eclipse printed out.
more error hints are as follows:
Org.eclipse.jgit.api.errors.transportexception:http://git.yiqihao.com/yiqihao/p2p.git:cannot Open Git-upload-pack
caused By:org.eclipse.jgit.errors.transportexception:http://git.yiqihao.com/yiqihao/p2p.git:cannot Open Git-upload-pack
caused by:java.net.UnknownHostException:git.yiqihao.com
Through the last exception, I know "java.net.UnknownHostException"Git doesn't know this host.
So, I am in DOS console, ping git.yiqihao.com found not unknown, ping baidu.yiqihao.com still unknown.
now, the root cause of the problem is determined: DNS invalidation, access to domain names always fail, direct ping IP address is OK.
But surprisingly, the browser and QQ and other network programs can be normal access through the domain name. Are the DNS services used by both of them not the same?
Here are the 10 solutions I've tried:
1. Delete the Hosts file.
2. Log off the computer.
3. Turn on the firewall.
4. Restart the DNS client and other network services,
5. Refresh DNS
Ipconfig/flushdns
6 Modifying the TCP-IP configuration
Get DNS and IP addresses automatically
7. Drive Wizard, repair network
8. Network Diagnostics
9. Replace Eclipse
10. A different project for Eclipse, different projects.
Regrettably, however, none of the above 10 approaches can be done.
Finally, I found the answer on the and news blog:
Ipconfig/flushdnsattribute DNS
Ipconfig/registerdns Registering DNS
netsh winsock reset reset network Service
-------------------
for complete dos information, refer to the following :
C:\users\administrator>ping baidu.com
The Ping request could not find the host baidu.com. Please check the name and try again.
C:\users\administrator>ipconfig/flushdns
Windows IP Configuration
The DNS resolution cache has been flushed successfully.
C:\users\administrator>ipconfig/registerdns
Windows IP Configuration
DNS resource records have been initialized for all adapters that register this computer. Any errors will be within 15 minutes of the
Report in Event Viewer.
C:\users\administrator>netsh Winsock Reset
Successfully reset the Winsock directory.
You must restart your computer to complete the reset.
C:\users\administrator>ping baidu.com
Ping baidu.com [220.181.57.217] has 32 bytes of data:
Reply from 220.181.57.217: Byte =32 time =145ms ttl=52
Reply from 220.181.57.217: Byte =32 time =163ms ttl=52
Reply from 220.181.57.217: Byte =32 time =162ms ttl=52
Reply from 220.181.57.217: Byte =32 time =79ms ttl=52
Ping Statistics for 220.181.57.217:
Packet: Sent = 4, received = 4, lost = 0 (0% missing),
Estimated time to round trip (in milliseconds):
Shortest = 79ms, longest = 163ms, average = 137ms
------------------------------------ ----------------------
CSDN2014 Blog Star selection, help Ray vote for it
Http://vote.blog.csdn.net/blogstar2014/details?username=fansunion
virus software, the solution that causes DNS invalidation