免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1224 | 回复: 1
打印 上一主题 下一主题

[服务应用] 有人遇到这种情况吗,急 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-02-05 16:30 |只看该作者 |倒序浏览
本帖最后由 ysjomje 于 2013-02-06 00:10 编辑

Last login: Tue Feb  5 16:13:23 2013
[root@mail ~]# service iptables status
Firewall is stopped.
[root@mail ~]# nslookup
> www.baidu.com
Server:         192.168.1.107
Address:        192.168.1.107#53

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com.
Name:   www.a.shifen.com
Address: 61.135.169.105
Name:   www.a.shifen.com
Address: 61.135.169.125
> [root@mail ~]#         
[root@mail ~]# ping www.baidu.com
PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data.


能解释域名,但ping无反应,环境是在虚拟机上,之前可以不知是不是修改一下/etc/resolv.conf文件就出现这种情况了

/etc/resolv.conf文件内容如下:
nameserver 192.168.1.107
nameserver 8.8.8.8
search example.com


yum安装软件包的时候出现这个,无法通过yum安装软件

[root@mail ~]# yum install bind.i*
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons                                                   | 1.9 kB     00:00     
base                                                     | 1.1 kB     00:00     
base/primary                                             |    0 B     00:32     
http://mirrors.163.com/centos/5/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.

论坛徽章:
0
2 [报告]
发表于 2013-02-06 09:46 |只看该作者
个人觉得楼主情况是你dns 配置错了,楼主既然是虚拟机环境,dns还是配置的和真机相同就行了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP