惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

AI
AI
O
OpenAI News
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
Jina AI
Jina AI
D
Docker
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
雷峰网
雷峰网
V
V2EX
小众软件
小众软件
N
News | PayPal Newsroom
GbyAI
GbyAI
Recorded Future
Recorded Future
SecWiki News
SecWiki News
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
Security Latest
Security Latest
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hacker News: Ask HN
Hacker News: Ask HN
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
The Last Watchdog
The Last Watchdog
V
Visual Studio Blog
C
Cisco Blogs
T
Tor Project blog
Google Online Security Blog
Google Online Security Blog
I
InfoQ
Attack and Defense Labs
Attack and Defense Labs
Y
Y Combinator Blog
博客园 - 聂微东
L
LangChain Blog
Blog — PlanetScale
Blog — PlanetScale
Apple Machine Learning Research
Apple Machine Learning Research
S
Schneier on Security
S
Securelist
博客园_首页
W
WeLiveSecurity
P
Privacy International News Feed
S
SegmentFault 最新的问题
博客园 - 【当耐特】
L
LINUX DO - 热门话题
Latest news
Latest news
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence

博客园 - 朱峰(Peter.zhu)

[转]Becoming a JavaScript ninja 【转载】关于大型asp.net应用系统的架构—如何做到高性能高可伸缩性 【javascript】Lazy Load, 延迟加载图片的 jQuery 插件 【译】15个必须知道的chrome开发者技巧 Implementing multi-level trees in MS SQL Server 【转】Linq to EF 与Linq to Object 使用心得 Implementing the Singleton Pattern in C# 【转】【翻译】The Top 10 Mistakes That KnockoutJS Developers Make c# ASP.Net 使用开源免费类库操作Excel VISUAL STUDIO 使用技巧大全 中英文版本之 一 - 命名空间引用管理 Redirect and Post JSON object in ASP.NET MVC 【引】Difference between Asp.Net WebForm and Asp.Net MVC 【引】How to Choose the Best Way to Pass Multiple Models in ASP.NET MVC 【引】Version Control System - SVN - Deployments Best Practices 【引】Version Control System - SVN - Developing and Deploying with Branches ASP.NET之ORM模型 - ActiveRecord 模式 Javascript基础复习 - jQuery Proxy函数 【转】Domain Driven Design - Clear Your Concepts Before You Start 【转】单体模式-经典实现 Implementing the Singleton Pattern in C#
【转载】net的nuget无法更新解决
朱峰(Peter.zhu) · 2014-10-30 · via 博客园 - 朱峰(Peter.zhu)

2014-10-30 11:53  朱峰(Peter.zhu)  阅读(727)  评论()    收藏  举报

打开Nuget,发现又出问题了:未能解析此远程名称:’nuget.org’。

在浏览器中输入 http://nuget.org 会发现是无法打开的。

在cmd命令行里输入: nslookup nuget.org    一般也是无法解析到这个域名的ip地址。

不过在cmd命令行里输入: nslookup nuget.org 8.8.8.8  向谷歌的dns查询这个域名,便能正确返回域名对应ip地址。

为什么使用dhcp自动获取的dns服务器就无法解析nuget.org 这个域名呢?

输入如下命令: nslookup –type=ns nuget.org 8.8.8.8 查询该域名的NameServer 服务器,会发现nuget.org使用的godaddy的域名服务器,而godaddy的域名服务器在国内被大规模屏蔽,所以在国内的dns服务器自然查询不到该域名,也自然出现了未能解析此远程名称咯!

解决方法有二:

1.修改hosts文件。通过上面第二条命令获取了nuget.org的真实地址后,直接添加到hosts文件中。如:157.56.8.150 nuget.org

2.修改电脑的dns服务器,不要用自动获取的dns,而是直接修改为opendns或是谷歌的dns。如8.8.8.8