[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to set /etc/hosts to force loopback connect



Hello list,

I'd like to make my debian box to loopback connect when it tries to connect to 
a specific domain name, say "www.foo.com". So I configured /etc/hosts and put 
127.0.0.1   www.foo.com in it.

When I try to ping www.foo.com, it exactly goes to 127.0.0.1. But when I use 
telnet www.foo.com 80, it will not connect to 127.0.0.1.

Any idea?


-- 
Patrick Hsieh<pahud@ezplay.tv>
GnuPG Pubilc Key at http://www.ezplay.tv/~pahud/pahudatezplay.pubkey
MD5 checksum: b948362c94655b74b33e859d58b8de91



Reply to: