# cat /etc/resolv.conf
# Generated by vio0 dhclient
nameserver 100.64.2.2
nameserver 100.64.2.2
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=63 time=0.938 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=0.799 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.799/0.868/0.938/0.070 ms
# echo "nameserver 192.168.1.1" > /etc/resolv.conf
# ping -c 1 www.google.com
ping: Warning: www.google.com has multiple addresses; using 74.125.205.105
PING www.google.com (74.125.205.105): 56 data bytes
64 bytes from 74.125.205.105: icmp_seq=0 ttl=46 time=24.032 ms
--- www.google.com ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 24.032/24.032/24.032/0.000 ms
#
(facepalm #2)
No comments:
Post a Comment