LinuxSir.cn,穿越时空的Linuxsir!

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

adsl问题

[复制链接]
发表于 2005-12-31 15:31:16 | 显示全部楼层 |阅读模式
安装过程中,没有chroot 前,都能上网,(通过adsl-setup ,adsl-start)
但是 chroot 后,上不了网,该如何解决。
发表于 2005-12-31 18:04:13 | 显示全部楼层
cp /etc/resolve.conf 做了么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-31 21:38:58 | 显示全部楼层

还是上不了网

Post by druggo
cp /etc/resolve.conf 做了么?

已经做了,但 在chroot后,域名无法解析。看了一下没 chroot 时的/etc/resolv.conf文件,里面只有“ domainname  gentoo"
下面是我在win下的adsl  时执行 ipconfig 时的
Windows IP Configuration





Ethernet adapter 本地连接:



        Connection-specific DNS Suffix  . :

        Autoconfiguration IP Address. . . : 169.254.220.215

        Subnet Mask . . . . . . . . . . . : 255.255.0.0

        Default Gateway . . . . . . . . . :



PPP adapter 163:



        Connection-specific DNS Suffix  . :

        IP Address. . . . . . . . . . . . : 218.24.165.60

        Subnet Mask . . . . . . . . . . . : 255.255.255.255

        Default Gateway . . . . . . . . . : 218.24.165.60

在gentoo下,如何写/etc/resolv.conf
回复 支持 反对

使用道具 举报

发表于 2005-12-31 22:02:09 | 显示全部楼层
请按部就班的参照安装手册
在chroot前cp现有系统的/etc/resolv.conf到chroot目录下的/etc中
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-1 09:28:15 | 显示全部楼层
多谢楼上两位,问题找到了。是在进行adsl-setup过程中,设置dns 时,不能设置为默认,要设为“server”,这样之后/etc/resolv.conf 下就有了正确的dns了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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