The problem is that I fail to SSH to a remote machine via its hostname, while using its IP works.
The hostname returned by command
while the name returned by command
nslookup $IP_address is:
pcpp3238782. They did not match each other.
I think that's why I cannot connect to remote machine using its hostname.
I have checked
/etc/sysconfig/network: all set the hostname to
/etc/resolve.conf, the name server is set to the right one.
strace but no new clue.
Anybody can please help?