nslookup 跟 /etc/hosts沒有半毛錢的關係
阿新 • • 發佈:2018-12-15
看題目,看圖:
[email protected]:~$ cat /etc/hosts | grep www
1.1.1.1 www.baidu.com
[email protected]:~$
[email protected]:~$
[email protected]:~$
[email protected]:~$ ping www.baidu.com
PING www.baidu.com (1.1.1.1) 56(84) bytes of data.
64 bytes from www.baidu.com (1.1.1.1): icmp_seq=1 ttl=51 time=163 ms
64 bytes from www.baidu.com (1.1.1.1): icmp_seq=2 ttl=51 time=168 ms
64 bytes from www.baidu.com (1.1.1.1): icmp_seq=3 ttl=51 time=172 ms
64 bytes from www.baidu.com (1.1.1.1): icmp_seq=4 ttl=51 time=167 ms
^C
--- www.baidu.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 163.467/168.069/172.841/3.348 ms
[email protected]:~$
[email protected]:~$
[email protected]:~$
[email protected]:~$ nslookup www.baidu.com
Server: 183.60.83.19
Address: 183.60.83.19#53
Non-authoritative answer:
www.baidu.com canonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 220.181.112.244
Name: www.a.shifen.com
Address: 220.181.111.188
[email protected]:~$
就這樣。