终于搞定了部分网站无法打开的问题

最近机器出现一个烦人的问题:有些网站无法打开,最初以为是实验室网络的问题,后来发现别人的机器能打开,于是开始折腾自己的机器了。hosts文件没有异常,关掉杀毒软件、防火墙,症状依旧:

在浏览器地址栏中敲入url回车之后,浏览器很快报错无法访问,特别干脆。于是在cmd中ping,报错:Ping request could not find host ***,nslookup能正常解析出IP地址,然后ping解析出来的ip地址,竟然能ping通!然后在浏览器中用ip地址访问,也能访问。这就奇怪了,既然nslookup能解析,浏览器为什么就不能解析呢?而且其它网站也没有这个问题啊,目前发现3个网站有这个问题,而且也都是正经网站啊,其中包括micsoft.com。有些茫然,google一下,找到一个解决办法,照着整呗,竟然搞定了!且看:

(from:http://www.windowsreference.com/windows-vista/fix-for-ping-request-could-not-find-host-fqdn-of-server-error/)
When you try to connect to server by fully qualified domain name (FQDN) which resides in top level domain (TLD) that has a purely numeric suffix, connection is failed. If server is domain controller issue also affects establishing trusts and domain joins.
When you try to PING server by FQDN you receive the following error message:
Ping request could not find host “FQDN of server”. Please check the name and try again.
Connection to the server by IP or by NetBIOS name is succeeding.When this issue occurs, all Domain Name System (DNS) records are correctly returned by NSLOOKUP. Therefore, DNS is fully functional and is not part of this issue.
By default DNS client service rejects resolution of DNS records in top level domain (TLD) that has a purely numeric suffix.
Procedure to Follow
To resolve this problem, add the ScreenBadTlds registry entry and restart DNS client service. Adding this registry entry prevents the DNS client service from performing the test to determine whether the top level domain is supported.
To add this registry entry and restart DNS client service, follow these steps.
1. Click Start, and then click Run, type regedit in Open box, and then press ENTER.
2. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
3. On the Edit menu, point to New, and then click DWORD Value.
4. Type ScreenBadTlds, and then press ENTER.
5. Right-click ScreenBadTlds, and then click Modify.
6. In the Value data box, type 0, and then click OK.
7. Exit Registry Editor.
8. Stop and then start the DNS client service. To do so:
a. Click Start, and then click Run.
b. In the Open box, type cmd, and then click OK.
c. At the command prompt, type the following lines. Press ENTER after each line
net stop DNScache
net start DNScache
d. Type exit to quit Command Prompt.

如果机器有类似问题的朋友不妨试试,很管用。不过还是不清楚为什么要在注册表添加一个参数?如果有知道的朋友还请回帖告知~谢谢!
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
更新内容:<br> 1.优化viewthread中的虚拟形象显示算法,每一个有虚拟形象显示的帖子页面只增加一次数据库查询(原本为每显示一个一次或一次以上查询),对于一页显示十帖的页面可减少至少9次查询。<br> 2.虚拟形象中心算法优化,每页减少5个以上查询。<br> 3.采用新的算法显示虚拟形象中心的个人形象,增加穿戴类别为整体造型的形象的功能,并且无需独立的header模版,减少了为使风格统一而进行修改的麻烦。<br> 4.虚拟形象中心中增添按形象名查询的功能,增加管理员可直接点击形象名进行设置形象的功能<br> 5.虚拟形象后台管理集成至系统设置中,功能完善:可批量修改虚拟形象,可编辑用户拥有的虚拟形象,更添加了虚拟形象数据的备份导出导入,方便批量添加虚拟形象和虚拟形象数据的更新升级流通。<br> 6.添加GD库版本和形象图片路径两个参数变量,图片路径参数可实现调用远程图片,对于没有空间存放图片包的会员可减少负担,但失去了主动升级的能力(因为你的图片文件是别人的呀,无法控制添加减少。) <br> <br> 将虚拟形象所有文件上传到相应位置,运行images_install.php,根据个人情况选择全新安装或升级。<br> 安装或升级后进入系统设置,对虚拟形象基本变量进行设置。<br> 如选择的是全新安装,还需在后台中将虚拟形象原始形象数据包导入。<br> 修改viewthread/template/tplfile目录,virtualimage/photo目录和virtualimage/images_config.php文件的权限为777<br> 修改相关文件完成安装。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值