1

Fail to ssh to remote machine via hostname

view story
linux-howto

http://unix.stackexchange.com – The problem is that I fail to SSH to remote machine via hostname(while IP does) The hostname return by command hostname is : california_desert 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 via hostname. Checked with /etc/hosts;/etc/hostname; /etc/sysconfig/network; all set hostname to california_desert Checked with /etc/resolve.conf, the name server is set to the right one. Also tried strace but no new clue. Anybody can please help? (HowTos)