LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 837|回复: 3

gentoo上网不稳定,不知道为什么?

[复制链接]
发表于 2008-5-24 13:47:59 | 显示全部楼层 |阅读模式
最近改成gentoo后,firefox上网不稳定,经常发生如下问题,提示:


  1. Address Not Found

  2. Firefox can't find the server at server.ccw.com.cn.

  3. The browser could not find the host server for the provided address.
  4.     * Did you make a mistake when typing the domain? (e.g. "ww.mozilla.org" instead of "www.mozilla.org")
  5.     * Are you certain this domain address exists?  Its registration may have expired.
  6.     * Are you unable to browse other sites?  Check your network connection and DNS server settings.
  7.     * Is your computer or network protected by a firewall or proxy?  Incorrect settings can interfere with Web browsing.

  8.    Try again
复制代码


多刷新几次,就能打开网页了。 遇到以前没打开过的网页时,这种问题更多些。

在本机上安装squid代理,其他客户端上也发生问题,提示:
service failur:  the name server was unable to process this query.
也是多刷新几次就可以打开了。

route和/etc/resolv.conf 设置和windows里一样,在windows时使用cproxy代理,都不会出现这这种问题。

有没有其他兄弟也遇到过此类问题呢?
该如何解决。
发表于 2008-5-24 21:38:33 | 显示全部楼层
我有此问题,不过可以接受。关注一下解决。
回复 支持 反对

使用道具 举报

发表于 2008-5-24 22:49:18 | 显示全部楼层
我没遇到过,可能是DNS解析超时时间太短?
/etc/conf.d/net.example里有相关的内容:
dns_options=("timeout 1"),不过我e文暂时还不过关,对注释一知半解
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-25 20:57:32 | 显示全部楼层
Post by 亞利艾爾;1854526
我有此问题,不过可以接受。关注一下解决。


亞利艾爾,你好,我今天设置了一下,感觉好多了,至少今天还没出现需刷新的情况。不知是小区宽带今天好了,还是其他原因?
你也试试看,证实一下。
旧的/etc/conf.d/net,为:
  1. config_eth1="172.17.84.52 netmask 255.255.0.0 brd 172.17.84.60"
  2. routes_eth1="default via 172.17.30.4"
复制代码

更改后的,新的/etc/conf.d/net,为:
  1. config_eth0="null"
  2. config_eth1="172.17.84.52 netmask 255.255.0.0 brd 172.17.84.60"
  3. routes_eth1="default via 172.17.30.4"
  4. #dns_domain_eth0="your.domain"
  5. dns_servers_eth1="211.157.15.189 202.181.202.157"
  6. dns_search_eth1="202.99.8.1 202.106.46.151"
  7. dns_options_eth1=( "timeout 1" "rotate" )
  8. #dns_sortlist_eth0="130.155.160.0/255.255.240.0 130.155.0.0"
复制代码
eth0是以太网卡, eth1是无线网卡,我用无线的,所以把eth0="null"不用了,我这小区宽带知道的dns特别多,就选了4个。

以下是旧的/etc/resolv.conf,
  1. nameserver 211.157.15.189
  2. search 202.181.202.157
复制代码

改变/etc/conf.d/net后,/etc/resolv.conf自动发生了变化(重启后),如下:
  1. search 202.99.8.1 202.106.46.151
  2. nameserver 211.157.15.189
  3. nameserver 202.181.202.157
  4. options timeout 1
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表