issue with name resolution

From: Giorgio Corani (gcoraniREMOVETHIS_at_gmail.com)
Date: 11/27/05


Date: Sun, 27 Nov 2005 10:33:08 +0000

dear all,

I have a slackware 10.2 box, and a remote linux box I want login to.

Here my problems:

traceroute [remote-hostname] -> no problems
ssh [remote-ip-address] -> works without problems

ssh [remote-hostname] -> connection fails, with a time out error
message.
By logging the ssh messages, I found out that it tries to connect to
host [1.0.0.0], i.e. it wrongly resolvs the host.

However, if I do

host [remote-hostname] -> ok

and then

ssh [remote-hostname] -> ok

ssh works; it seems that it uses same cache of host resolution.

Can you explain me how to fix the hostname resolution?

best regards

G.