LinuxSir.cn,穿越时空的Linuxsir!

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

dns坏了?通过网站名上不了网络,只能通过ip地址

[复制链接]
发表于 2008-10-25 14:28:07 | 显示全部楼层 |阅读模式
我重新安装了avahi也不行。在登陆的时候(xfce4),总是提示网络找不到。可是明明可以分得到ip(dhcp)。
xfce4提示如下:
Could not look up internet address for gentoo.This will prevent Xfce from operating correctly.It may be possible to correct the problem by  adding gentoo to the file /etc/hosts on your system.

我把gentoo(我的主机名称)加入到/etc/hosts中,开机这个弹出框没有了,可是问题还是存在。
发表于 2008-10-25 15:14:40 | 显示全部楼层
xfce的提示和你能不能上网无关
你要配置一下/etc/resolv.conf
一般的dhcp服务器会提供dns,你的dhcp服务器恐怕需要再配置一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-25 15:17:05 | 显示全部楼层
对的。我现在手动将/etc/resolv.conf设置dns,现在是可以了。我用的是tplink 的tl-R460路由器,一直没有动过。
回复 支持 反对

使用道具 举报

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

本版积分规则

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