Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hartator
· 10y ago · 0 comments
echo "google.com 127.0.0.1" >> /etc/hosts
Comments
[–]
niels_olson
10y ago
Yeah, I recommend against this particular example :)
[–]
amelius
10y ago
Do this on your friends and families computers, and change the world.
[–]
alwaysdownvoted
10y ago
There'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.
[–]
iainnash
10y ago
Would need to be www.google.com to be effective, this just breaks the redirect.
[–]
tejtm
10y ago
duckduckgo it
echo "google.com 54.215.176.19" >> /etc/hosts