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

推荐订阅源

Jina AI
Jina AI
C
Cybersecurity and Infrastructure Security Agency CISA
美团技术团队
J
Java Code Geeks
博客园 - 聂微东
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
雷峰网
雷峰网
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
The Cloudflare Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
IT之家
IT之家
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
The Exploit Database - CXSecurity.com
I
Intezer
V
Vulnerabilities – Threatpost
Simon Willison's Weblog
Simon Willison's Weblog
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
T
Tenable Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Project Zero
Project Zero
H
Hacker News: Front Page
SecWiki News
SecWiki News
L
LINUX DO - 最新话题
Hacker News: Ask HN
Hacker News: Ask HN
Forbes - Security
Forbes - Security
C
CERT Recently Published Vulnerability Notes
T
Threatpost
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
V2EX - 技术
V2EX - 技术

博客园 - db's jim

NuGet 无法连接到远程服务器-解决方法(转) [转]jquery对事件冒泡的处理方法 Asp.net中的认证与授权 JS的事件监听机制 用映射的方法获取当前方法的名称 log4net的各种Appender配置示例(转) System.Diagnostics命名空间里的Debug类和Trace类的用途(收藏) Newtonsoft.Json处理日期问题 Failed to execute request because the App-Domain could not be created C#Windows服务程序安装 VS2010快捷键 生成方法存根 (Stub) NHibernate 事务查询的更新事件 Nhibernate.hbm2ddl.auto配置详解 NHibernate.Tool.hbm2ddl SchemaExport SQL2005 开窗函数 通过WEB方式修改windows帐号的秘密 将EXCEL文档导入SQL server 2005错误 castle ActiveRecord 初始化
未能解析此远程名称:’nuget.org’ 解决方法(转)
db's jim · 2012-10-10 · via 博客园 - db's jim

原地址:http://www.lixin.me/blog/2012/08/02/29583

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