ping: unknown host www.baidu.com

[root@name01 local]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 114.114.114.114
[root@name01 local]# ping www.baidu.com
PING www.a.shifen.com (119.75.218.70) 56(84) bytes of data.
64 bytes from 119.75.218.70: icmp_seq=1 ttl=56 time=3.94 ms
64 bytes from 119.75.218.70: icmp_seq=2 ttl=56 time=7.96 ms
64 bytes from 119.75.218.70: icmp_seq=3 ttl=56 time=5.36 ms
64 bytes from 119.75.218.70: icmp_seq=4 ttl=56 time=3.70 ms
64 bytes from 119.75.218.70: icmp_seq=5 ttl=56 time=4.82 ms
64 bytes from 119.75.218.70: icmp_seq=6 ttl=56 time=11.6 ms
64 bytes from 119.75.218.70: icmp_seq=7 ttl=56 time=3.58 ms
64 bytes from 119.75.218.70: icmp_seq=8 ttl=56 time=5.70 ms
64 bytes from 119.75.218.70: icmp_seq=9 ttl=56 time=3.63 ms
64 bytes from 119.75.218.70: icmp_seq=10 ttl=56 time=3.68 ms
64 bytes from 119.75.218.70: icmp_seq=11 ttl=56 time=4.01 ms
64 bytes from 119.75.218.70: icmp_seq=12 ttl=56 time=4.28 ms
64 bytes from 119.75.218.70: icmp_seq=13 ttl=56 time=4.43 ms
64 bytes from 119.75.218.70: icmp_seq=14 ttl=56 time=4.44 ms
64 bytes from 119.75.218.70: icmp_seq=15 ttl=56 time=3.76 ms
64 bytes from 119.75.218.70: icmp_seq=16 ttl=56 time=3.38 ms
64 bytes from 119.75.218.70: icmp_seq=17 ttl=56 time=4.43 ms
64 bytes from 119.75.218.70: icmp_seq=18 ttl=56 time=8.77 ms
64 bytes from 119.75.218.70: icmp_seq=19 ttl=56 time=4.08 ms
64 bytes from 119.75.218.70: icmp_seq=20 ttl=56 time=4.67 ms
64 bytes from 119.75.218.70: icmp_seq=21 ttl=56 time=5.34 ms
64 bytes from 119.75.218.70: icmp_seq=22 ttl=56 time=5.39 ms
^C
--- www.a.shifen.com ping statistics ---
22 packets transmitted, 22 received, 0% packet loss, time 31582ms
rtt min/avg/max/mdev = 3.384/5.049/11.654/1.956 ms
[root@name01 local]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
IPV6INIT=yes
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="2d678a8b-6c40-4ebc-8f4e-245ef6b7a969"
HWADDR=00:0c:29:b6:50:5b
#IPADDR=172.17.246.250
IPADDR=192.168.3.111
NETMASK=255.255.255.0
DNS2=114.114.114.114
#GATEWAY=172.17.246.1
GATEWAY=192.168.3.1
DNS1=8.8.8.8
USERCTL=no
[root@name01 local]# 

[root@cdh1 ~]# ping www.baidu.com
ping: unknown host www.baidu.com
[root@cdh1 ~]# ping www.baidu.com
ping: unknown host www.baidu.com
[root@cdh1 ~]# ping www.baidu.com
ping: unknown host www.baidu.com
[root@cdh1 ~]# ping 192.168.3.101
PING 192.168.3.101 (192.168.3.101) 56(84) bytes of data.
64 bytes from 192.168.3.101: icmp_seq=1 ttl=128 time=0.464 ms
64 bytes from 192.168.3.101: icmp_seq=2 ttl=128 time=0.549 ms
64 bytes from 192.168.3.101: icmp_seq=3 ttl=128 time=0.446 ms
64 bytes from 192.168.3.101: icmp_seq=4 ttl=128 time=0.445 ms
64 bytes from 192.168.3.101: icmp_seq=5 ttl=128 time=0.397 ms
64 bytes from 192.168.3.101: icmp_seq=6 ttl=128 time=0.639 ms
^C
--- 192.168.3.101 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5397ms
rtt min/avg/max/mdev = 0.397/0.490/0.639/0.080 ms
[root@cdh1 ~]# ping 192.168.3.101 -c 4
PING 192.168.3.101 (192.168.3.101) 56(84) bytes of data.
64 bytes from 192.168.3.101: icmp_seq=1 ttl=128 time=0.685 ms
64 bytes from 192.168.3.101: icmp_seq=2 ttl=128 time=0.590 ms
64 bytes from 192.168.3.101: icmp_seq=3 ttl=128 time=0.517 ms
64 bytes from 192.168.3.101: icmp_seq=4 ttl=128 time=0.425 ms

--- 192.168.3.101 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 0.425/0.554/0.685/0.096 ms
[root@cdh1 ~]# 
[root@cdh1 ~]# cat /etc/resolv.conf
# Generated by NetworkManager


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
[root@cdh1 ~]# vim /etc/resolv.conf
[root@cdh1 ~]# cat /etc/resolv.conf
# Generated by NetworkManager


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com

nameserver 8.8.8.8
nameserver 114.114.114.114
[root@cdh1 ~]# ping www.baidu.com
PING www.a.shifen.com (119.75.218.70) 56(84) bytes of data.
64 bytes from 119.75.218.70: icmp_seq=1 ttl=56 time=4.13 ms
64 bytes from 119.75.218.70: icmp_seq=2 ttl=56 time=3.43 ms
64 bytes from 119.75.218.70: icmp_seq=3 ttl=56 time=10.3 ms
64 bytes from 119.75.218.70: icmp_seq=4 ttl=56 time=27.3 ms
64 bytes from 119.75.218.70: icmp_seq=5 ttl=56 time=21.5 ms
64 bytes from 119.75.218.70: icmp_seq=6 ttl=56 time=6.50 ms
64 bytes from 119.75.218.70: icmp_seq=7 ttl=56 time=3.18 ms
64 bytes from 119.75.218.70: icmp_seq=8 ttl=56 time=6.07 ms
64 bytes from 119.75.218.70: icmp_seq=9 ttl=56 time=4.96 ms
64 bytes from 119.75.218.70: icmp_seq=10 ttl=56 time=6.33 ms
^C
--- www.a.shifen.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 18774ms
rtt min/avg/max/mdev = 3.186/9.378/27.333/7.871 ms
[root@cdh1 ~]# 

你可能感兴趣的:(Linux,network,hadoop)