Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Host file ( /etc/hosts ) not working right or I'm confused.

    My /etc/hosts file contains the following:
    # localhost
    # Blocking

    In a terminal, when I ping, tr, etc. to, it does appear the host file is working correctly as it shows resolving to

    However, if I attempt to surf to in a browser (Firefox, Opera, and konqueror) the page pulls up fine and my firefox IP plugin shows it resolves to

    Can someone explain what's going on here?

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    the hills
    An entry in the hosts file will not block an entire domain.
    So an entry for domain dot com will not affect host1 dot domain dot com
    or host2 dot domain dot com.

  3. #3
    Also make sure your browser is not using a proxy, but rcgreen's post is likely your problem.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts