Last command not showing hostnames only IP addresses

samirj09

Registered
Mar 14, 2012
3
0
51
cPanel Access Level
Root Administrator
I have 4 servers. 2 with cPanel 2 without.


Anytime I SSH into any of my cPanel servers, the "last" or "who" commands just shows the connecting IP address no hostnames. If I SSH into my non-cPanel servers, the "last" and "who" commands shows the connecting hostname instead of the IP address.


What could be causing the cPanel servers to not show the hostname? Is there a setting that I need to change on the cPanel servers to enable this somehow?
 

larry80

Registered
Mar 3, 2012
1
0
51
cPanel Access Level
Website Owner
This is because your /etc/ssh/sshd_config contains the entry of "UseDNS no" which allows brute force detection I believe.