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

Re: telnet localhost slow, telnet 127.0.0.1 ok



Antony Gelberg <antony@antgel.co.uk> wrote:
> On Sat, Aug 16, 2003 at 12:25:16AM +0100, r.levene@lancaster.ac.uk wrote:
>> If I run telnet localhost 22 then I have to wait 15-30 seconds
>> before it connects; with telnet 127.0.0.1 22 it connects at once. I
>> have the same results using other open ports.
>> 
>> Running strace telnet localhost 22 shows that it's trying to
>> resolve the hostname localhost by querying the nameserver. I
>> thought that shouldn't happen with my setup, though.

> Does your /etc/host.conf contain
> order hosts,bind

Yes, it does. Sorry I forgot to include that file -- here it is.

order hosts,bind
multi on

Rupert



Reply to: