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

Re: telnet localhost slow, telnet 127.0.0.1 ok



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.
> 
> I'm running debian woody... any ideas why this might be happening and
> how to solve it? 
> 
> Rupert

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

A



Reply to: