When the next nuget package was used today, it was found that nuget was down: the remote name could not be resolved: 'nuget. org '. The first reaction is the Party's principal shake Wei Feng, hung a proxy on the http://nuget.org tried, really good.
Run the NSLookup nuget.org command and try again. The domain name cannot be resolved. Then, use Google DNS to re-resolve the NSLookup nuget.org 8.8.8.8, which can parse the 157.56.8.150 file, and Use http: // 157.56.8.150/to view it, allows you to smoothly browse nuget.
It can be determined that the DNS is hijacked. Run the NSLookup-type = NS nuget.org 8.8.8.8 command to check whether nuget uses a Godaddy Domain Name Server, however, Godaddy's domain name server does not match the eight-character of the Party's principal. When the Party's principal returns from a long vacation, the three-character fire will be taken for granted.
After knowing the cause, the solution will be:
- Modify the DNS configuration on your computer. do not obtain it automatically. Use opendns or Google 8.8.8.8 instead.
- Run the "NSLookup nuget.org 8.8.8.8" command to obtain the IP address of nuget.org (Here I Am Going To 157.56.8.150) and add this IP address to the host file: 157.56.8.150 nuget.org.