当前位置: 技术问答>linux和unix
chroot环境下dns解析不好用
来源: 互联网 发布时间:2016-11-20
本文导语: 红帽 chroot环境下wget的结果 ping也一样 bash-3.2# wget www.baidu.com --2011-04-11 08:49:22-- http://www.baidu.com/ Resolving www.baidu.com... failed: Name or service not known. wget: unable to resolve host address `www.baidu.com' /etc/resolv.conf 这...
红帽 chroot环境下wget的结果 ping也一样
bash-3.2# wget www.baidu.com
--2011-04-11 08:49:22-- http://www.baidu.com/
Resolving www.baidu.com... failed: Name or service not known.
wget: unable to resolve host address `www.baidu.com'
/etc/resolv.conf 这个文件有
bash-3.2#cat /etc/resolv.conf
search localdomain
nameserver 219.141.140.10
proc设备也挂上
bash-3.2# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
eth0 Link encap:Ethernet HWaddr 00:E0:66:0F:EE:1B
inet addr:192.200.42.7 Bcast:192.200.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:217 Base address:0xa000
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
是不是还上什么库 到底什么库?我直接ping IP是没问题的 关键域名解析怎么设置 谢谢大牛们勒
bash-3.2# wget www.baidu.com
--2011-04-11 08:49:22-- http://www.baidu.com/
Resolving www.baidu.com... failed: Name or service not known.
wget: unable to resolve host address `www.baidu.com'
/etc/resolv.conf 这个文件有
bash-3.2#cat /etc/resolv.conf
search localdomain
nameserver 219.141.140.10
proc设备也挂上
bash-3.2# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
eth0 Link encap:Ethernet HWaddr 00:E0:66:0F:EE:1B
inet addr:192.200.42.7 Bcast:192.200.42.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:217 Base address:0xa000
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
是不是还上什么库 到底什么库?我直接ping IP是没问题的 关键域名解析怎么设置 谢谢大牛们勒
|
你的根文件系统有问题,/dev下估计就2个文件吧?
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。