|
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 ~]# |
|