LinuxSir.cn,穿越时空的Linuxsir!

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

ping不通域名但nslookup可以

[复制链接]
发表于 2011-3-14 20:45:52 | 显示全部楼层 |阅读模式
CentOS 5.4
ping不通域名,
但nslookup可以解析
可以ping url_IP
可以telnet url_IP 80
咋办?
[root@BJ-S ~]# more /etc/resolv.conf
#search BJ-S
nameserver 8.8.8.8
nameserver 202.106.0.20

[root@BJ-S ~]# ping www.sina.com.cn
ping: unknown host www.sina.com.cn

[root@BJ-S ~]#
[root@BJ-S ~]# nslookup www.sina.com.cn
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
www.sina.com.cn canonical name = jupiter.sina.com.cn.
jupiter.sina.com.cn     canonical name = hydra.sina.com.cn.
Name:   hydra.sina.com.cn
Address: 218.30.108.183
Name:   hydra.sina.com.cn
Address: 218.30.108.184
Name:   hydra.sina.com.cn
Address: 218.30.108.185
Name:  

[root@BJ-S ~]# ping 218.30.108.183
PING 218.30.108.183 (218.30.108.183) 56(84) bytes of data.
64 bytes from 218.30.108.183: icmp_seq=1 ttl=51 time=3.86 ms
64 bytes from 218.30.108.183: icmp_seq=2 ttl=51 time=3.97 ms

--- 218.30.108.183 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.862/3.919/3.976/0.057 ms
[root@BJ-S ~]#
[root@BJ-S ~]# telnet 218.30.108.183 80
Trying 218.30.108.183...
Connected to 218.30.108.183 (218.30.108.183).
Escape character is '^]'.
^]
telnet> q
[root@BJ-S ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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