Solutions to DNS failures caused by virus software

Source: Internet
Author: User

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

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.