校内dns不通
-
- 帖子: 28
- 注册时间: 2005-09-11 20:30
校内dns不通
大家好,我的问题是这样的:
我在学校的局域网内,用的是固定ip和学校的dns。连外网通过电信的adsl拨号 DHCP并且dns也变为电信的dns。
局域网要设置 ip,betmask 和gw,dns。
现在我连校内网如果输www.****.edu.cn上不去的,一定要直接输ip才可以上去,
尝试nslookup www.sina.com
结果是;; connection timed out; no servers could be reached
现在只能连外网去上校内网了,大家帮帮我吧。我是 5.04的
我在学校的局域网内,用的是固定ip和学校的dns。连外网通过电信的adsl拨号 DHCP并且dns也变为电信的dns。
局域网要设置 ip,betmask 和gw,dns。
现在我连校内网如果输www.****.edu.cn上不去的,一定要直接输ip才可以上去,
尝试nslookup www.sina.com
结果是;; connection timed out; no servers could be reached
现在只能连外网去上校内网了,大家帮帮我吧。我是 5.04的
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 28
- 注册时间: 2005-09-11 20:30
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 28
- 注册时间: 2005-09-11 20:30
可以的。就是说:我在学校局域网内,学校有3个dns服务器,常用的两个,我在联网里面设置了这两个dns服务器。一般来说我这样设置好了应该就可以上校内网了,但是现在如果不直接输入ip地址就没办法连接。譬如我输bbs.****.edu.cn就连不上学校的bbs,但是如果直接输入***.***.***.***就可以连上的。
我用nslookup命令尝试:
得到的是connection timed out; no servers could be reached
具体的设置是:
ip.10.85.33.99
netmask 255.255.255.0
gw :10.85.33.254
dns:202.120.224.6,202.120.224.26
我用nslookup命令尝试:
得到的是connection timed out; no servers could be reached
具体的设置是:
ip.10.85.33.99
netmask 255.255.255.0
gw :10.85.33.254
dns:202.120.224.6,202.120.224.26
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 28
- 注册时间: 2005-09-11 20:30
/etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
iface eth0 inet static
address 10.85.33.99
netmask 255.255.255.0
broadcast 10.85.33.255
gateway 10.85.33.254
auto eth0
-----------------------------------------------------------------------
resolv.conf:
nameserver 202.120.224.6
nameserver 202.120.224.26
------------------------------------------------------------------------
这是断开外网情况下的两个文件,谢谢大家了
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
iface eth0 inet static
address 10.85.33.99
netmask 255.255.255.0
broadcast 10.85.33.255
gateway 10.85.33.254
auto eth0
-----------------------------------------------------------------------
resolv.conf:
nameserver 202.120.224.6
nameserver 202.120.224.26
------------------------------------------------------------------------
这是断开外网情况下的两个文件,谢谢大家了
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 28
- 注册时间: 2005-09-11 20:30
装好了,装了tcptraceroute,对吗?
jelly@starfish:~/Desktop$ tcptraceroute 202.120.224.6
Selected device eth0, address 10.85.33.99 for outgoing packets
Tracing the path to 202.120.224.6 on TCP port 80, 30 hops max
1 10.85.33.254 (10.85.33.254) 0.407 ms 0.295 ms 0.244 ms
2 * * *
3 * * *
。。。
jelly@starfish:~/Desktop$ tcptraceroute 10.85.33.254
Selected device eth0, address 10.85.33.99 for outgoing packets
Tracing the path to 10.85.33.254 on TCP port 80, 30 hops max
1 10.85.33.254 (10.85.33.254) [closed] 1.586 ms 0.224 ms 0.225 ms
恩就是这样了,谢谢拉
jelly@starfish:~/Desktop$ tcptraceroute 202.120.224.6
Selected device eth0, address 10.85.33.99 for outgoing packets
Tracing the path to 202.120.224.6 on TCP port 80, 30 hops max
1 10.85.33.254 (10.85.33.254) 0.407 ms 0.295 ms 0.244 ms
2 * * *
3 * * *
。。。
jelly@starfish:~/Desktop$ tcptraceroute 10.85.33.254
Selected device eth0, address 10.85.33.99 for outgoing packets
Tracing the path to 10.85.33.254 on TCP port 80, 30 hops max
1 10.85.33.254 (10.85.33.254) [closed] 1.586 ms 0.224 ms 0.225 ms
恩就是这样了,谢谢拉