- 论坛徽章:
- 0
|
本帖最后由 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. |
|