4 ms·
echo "google.com 127.0.0.1" >> /etc/hosts
by hartator 11y ago
echo "google.com 127.0.0.1" >> /etc/hosts
- niels_olson 11y agoYeah, I recommend against this particular example :)
- amelius 11y agoDo this on your friends and families computers, and change the world.
- iainnash 11y agoWould need to be www.google.com to be effective, this just breaks the redirect.
- tejtm 11y agoduckduckgo it echo "google.com 54.215.176.19" >> /etc/hosts
- alwaysdownvoted 11y agoThere's a couple of comments showing hostname followed by IP address. Are commenters really putting entries in this format into their HOSTS file? And it works? The correct format, at least on BSD UNIX and Windows, is IP address followed by hostname.