LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to resolve IP Addresses? (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-resolve-ip-addresses-170900/)

ajrosen 04-16-2004 09:18 AM

Trying to resolve IP Addresses?
 
Hi gurus.

I am running RH9 on a couple of boxes, and noticed something strange. When trying to ftp between the two of them (also attempting ssh and various other programs), I was experiencing a delay of around 15 seconds before it would connect. After the connections were made, the rest of the traffic flowed smoothly. After doing some Ethereal captures, and some experimentation, I found that if I added the remote server to the local hosts table, the delays went away. The confusing thing is, I was specifying the IP address, not using host names.

It seems to me it is attempting to resolve ip addresses to hostnames, although I don't know why it would need to, and this was not an issue a little while ago (I'm not the only person working on these systems, so someone else may have made some configuration changes). Does anyone know of some setting that may have been made that would cause this behavior? I appreciate any help.

Thanks

Adam

ekman 04-16-2004 11:20 AM

Hello,
I think your guess is correct, it is trying to make a "reverse lookup" on your ip-address.
Many programs does that with this kind of annoying results. I guess the setting is
individual per program. Many (e.g "ethereal") has a "-n" switch to suspress this (I
always use it). If there is a global way of fixing this I am also interrested.
For ssh it *might* me more complicated since it stores host related
security information in ~/.ssh, and maybe it must both names and ip-addresses (but I
am guessing).
Regards,
L Ekman


All times are GMT -5. The time now is 01:47 AM.