Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To fight against my procrastination I changed /etc/hosts on my Ubuntu (11.10) laptop. The /etc/hosts looks now like

127.0.0.1 facebook.com  
127.0.0.1 plus.google.com  
127.0.0.1 twitter.com  

and many more time-eaters in it!

But if I type now facebook.com in my browser it still works.

Is there a DNS cache or something?

share|improve this question

migrated from stackoverflow.com Feb 18 '12 at 14:02

This question came from our site for professional and enthusiast programmers.

    
By the way, you can put multiple entries on one line--127.0.0.1 facebook.com plus.google.com twitter.com stackoverflow.com etc. – Chris Morgan Feb 18 '12 at 13:39
up vote 2 down vote accepted

Are you perhaps going to www.facebook.com rather than facebook.com? You probably want to block www. variants as well.

share|improve this answer
    
such an easy answer... i was searching really long for deleting the dns cache... thanks for your help! – Joerg Feb 18 '12 at 13:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .