The DNS becomes invalid because of virus software.

Source: Internet
Author: User

The DNS becomes invalid because of virus software.

The problem is that the DNS is invalid and the ping to the domain name always fails.

Problem Review: A group of friends uploaded a virus software in the group a few weeks ago. I wanted to test it and finally got poisoned. A few days ago, the software was uninstalled, And the last weekend solved the problem of deleting the last software, resulting in the inability to access the Internet. (Friendly tips: QQ computer manager and other anti-virus software are full of clouds in front of new viruses)

I thought that the problem of surfing the Internet had been solved last weekend. At that time, I found that Web browsers, QQ, and other applications could be connected to the Internet, and I thought everything would be fine.

 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.
More error messages 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

With the last exception message, I know that"Java.net. UnknownHostException", Git does not know this host.

Therefore, on the dos console, I ping git.yiqihao.com and find that it cannot be unknown. ping baidu.yiqihao.com is still Unknown.

Now, the root cause of the problem is determined: DNS failure, access to the domain name always fails, directly ping the IP address is acceptable.

However, it is strange that web programs such as browsers and QQ can be accessed through domain names normally. Are they using the same DNS service?

The following are 10 solutions I have tried:
1. Delete the hosts file.

2. log out of your computer.
3. Enable the firewall.
4. Restart network services such as DNS client,
5. Refresh dns
Ipconfig/flushdns
6 modify TCP-IP Configuration
Automatically obtain dns and IP address
7. Drive genie to repair the network

8. Network diagnosis
9. Change Eclipse

10. different projects and projects of one Eclipse.

Unfortunately, none of the above 10 methods is feasible.

Finally, I found the answer on Hexun's blog:
Ipconfig/flushdns attribute DNS
Ipconfig/registerdns register DNS
Netsh winsock reset network reset Service

-------------------
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

Http://vote.blog.csdn.net/blogstar2014/details? Username = fansunion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.