LinuxSir.cn,穿越时空的Linuxsir!

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

上网出现unkown host 问题...

[复制链接]
发表于 2004-11-22 22:41:34 | 显示全部楼层 |阅读模式
ping网址出现unkown host ,把网址换成IP就可以PING通..不能解析域名.

请问要如何解决..?

xp里网卡设置:
局域网上网
192.168.0.70
255.255.255.0
网关:192.168.0.1
DNS:192.168.0.1


gentoo下net设置:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.70 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
dhcpcd_eth0="192.168.0.1"

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/192.168.0.1"
发表于 2004-11-23 04:47:19 | 显示全部楼层
检查一下/etc/resolv.conf里的nameserver设了没有,对你来说就是
nameserver 192.168.0.1
或用livecd安装时用的,有一步就是让你把安装时用的/etc/resolv.conf拷到新的系统中.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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