现在的位置: 首页 > 综合 > 正文

校外访问不了cgbt.cn(403 forbidden)解决办法

2011年07月11日 ⁄ 综合 ⁄ 共 1036字 ⁄ 字号 评论关闭

众所周知,DNS的作用就是将域名转换为IP地址。
公网很多DNS服务器不支持IPv6,或者没有完全收录IPv6地址,所以在交大校外访问cgbt.cn有时不能正确的解析为IPv6地址。

我们有一个办法来解决,修改HOST表。

开始——运行:

%systemroot%\system32\drivers\etc

打开以上文件夹,看到里边有一个hosts的无扩展名文件
用记事本打开,看到: # Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#    102.54.94.97     rhino.acme.com       # source server
#    38.25.63.10     x.acme.com              # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1    localhost
# ::1          localhost在下边空白处加入: [2001:da8:205::100] cgbt.cn
[2001:da8:205::100] ipv6.cgbt.cn
[2001:da8:205::100] tracker.cgbt.cn
[2001:da8:205::100] tracker.ipv6.cgbt.cn这样就能迫使系统以现有地址进行域名解析了。
同时,必须重启DNSClient服务才可生效。

开始——运行:
ipconfig /flushdns

抱歉!评论已关闭.