After searching related questions and answers, I find my issue still unsolved: editing /private/etc/hosts does not work on macOS Sierra.
What in my /private/etc/hosts is the following two rules.
127.0.0.1 localhost 127.0.0.1 www.yahoo.com
These two rules cannot be applied in Safari and Chrome, even after running the command
sudo killall -HUP mDNSResponder. The website yahoo is not redirected to 127.0.0.1.
So what do I miss in the above operation?
And the output of
ping -c 3 www.yahoo.com is as following.
PING fd-fp3.wg1.b.yahoo.com (22.214.171.124): 56 data bytes 64 bytes from 126.96.36.199: icmp_seq=0 ttl=47 time=138.418 ms 64 bytes from 188.8.131.52: icmp_seq=1 ttl=47 time=74.284 ms 64 bytes from 184.108.40.206: icmp_seq=2 ttl=47 time=69.702 ms --- fd-fp3.wg1.b.yahoo.com ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 69.702/94.135/138.418/31.369 ms