modify hosts file
derek at pointerstop.ca
Thu Jun 4 16:29:34 UTC 2009
Michael Casey wrote:
> I've modified the /etc/hosts file, like this:
> 127.0.0.1 localhost
> 127.0.0.0 domain0.com
> 127.0.0.0 domain1.com
> because I want to block
> domain0.com and
> but I don't want to set 127.0.0.1 to them, because then I have to wait
> until "timeout"
That doesn't make sense. As far as your system is concerned, 127.0.0.0 is
the same destination as 127.0.0.1.
> Is it "ok" to set 127.0.0.0 IPs to domains what I want to block? It wont
> wait until timeout, like when using 127.0.0.1
Despite (or because of) what I said above, of course it's OK to set those
domains to 127.0.0.0 - because it's effectively the same thing.
> p.s.: what size is the max for the hosts file? :D
How big's your drive? :-)
More information about the ubuntu-users