Re: how to set /etc/hosts to force loopback connect

2002-11-12 Thread Pete Harlan
On Fri, Nov 08, 2002 at 04:05:51PM +0800, Patrick Hsieh wrote:
 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.

Telnet uses DNS before it looks in /etc/hosts.  It's a bug in the name
resolving routines having to do with ipv6.  Some people don't think
it's a bug.  I don't know why.  bugs.debian.org may have the anser
somewhere.

HTH,

--Pete


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: how to set /etc/hosts to force loopback connect

2002-11-08 Thread Matthew Daubenspeck
On Fri, Nov 08, 2002 at 04:05:51PM +0800, Patrick Hsieh wrote:
 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?

Are you using apache on port 80? By default, I don't think apache
listens on IP 127.0.0.1. You would have to manually add that?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]