+ -
当前位置:首页 → 问答吧 → 求助:关于dns client 设置

求助:关于dns client 设置

时间:2005-04-22

来源:互联网

我正在用mini linux系统(xlinux),但是不能用域名方式访问internat服务器,用ip方式则可以。
例如:ping http://www.sohu.com 返回 unknown host.  ping dns server ip 则正确返回。

请问: dns client 与内核有关吗?

我的系统配置如下:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.128 U     0      0        0 eth0
default         192.168.0.69    0.0.0.0         UG    1      0        0 eth0

# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:4C:91:00:C9
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8975 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1637 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:806830 (787.9 Kb)  TX bytes:112731 (110.0 Kb)
          Interrupt:5 Base address:0x220

# more resolv.conf
domain mydomain.com
nameserver      202.99.96.68
nameserver      202.106.0.20

# more host.conf
order bind,hosts

# ping http://www.sohu.com
ping: http://www.sohu.com: Unknown host

-----------------------------------------------
请大家帮忙!

[email protected]      

作者: ecco   发布时间: 2005-04-22

热门下载

更多