ssh connection slow when using @hostname.com but now when using @ipaddress
- by Alex Recarey
When connecting to a Debian server using ssh, if I use user@XXX.XXX.XXX.XXX (the IP address of hte server) the connection is instant.
If however I use user@hostname.com (a DNS redirected to the IP address of the server) the ssh connection hangs for a 20 seconds before connecting successfully. The ssh logs show the following:
[alex@alex home]$ ssh…