Hacker News new | ask | show | jobs
by netaddict 3276 days ago

  127.0.0.1 facebook.com
  127.0.0.1 www.facebook.com
  127.0.0.1 static.ak.fbcdn.net
  127.0.0.1 www.static.ak.fbcdn.net
  127.0.0.1 login.facebook.com
  127.0.0.1 www.login.facebook.com
  127.0.0.1 fbcdn.net
  127.0.0.1 www.fbcdn.net
  127.0.0.1 fbcdn.com
  127.0.0.1 www.fbcdn.com
  127.0.0.1 static.ak.connect.facebook.com
  127.0.0.1 www.static.ak.connect.facebook.com
1 comments

0.0.0.0 is a better target than localhost, because it means the connection fails immediately rather than possibly timing out, and it won't accidentally succeed if you're running a local server.

The IPv6 variant (two colons, ::) is shorter still.