Who Command Does not Resolve the Hostname - Solaris 11.4
(Doc ID 2557862.1)
Last updated on NOVEMBER 27, 2020
Applies to:
Solaris Operating System - Version 11.4 and laterInformation in this document applies to any platform.
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on SPARC (64-bit)
Goal
Why who doesn't return the FQDN in Solaris 11.4 ?
root@solaris:~# who
oracle pts/2 May 28 04:31 (10.xxx.xxx.xxx)
Nslookup properly resolving the name
root@solaris:~# nslookup 10.xxx.xxx.xxx
Server: 192.xxx.xxx.xxx
Address: 192.xxx.xxx.xxx#53
Non-authoritative answer:
200.192.xxx.xxx.xxx.in-addr.arpa name = xxxxxx.yyyyyyy.oracle.com.
root@solaris:~# pkg list entire
NAME (PUBLISHER) VERSION IFO
entire 11.4-11.4.3.0.1.5.0 i--
Before OpenSSH 6.8 the default was to record hostname in /etc/utmpx from where who -a command will print the string. Now the utmpx field stores ip addresses, not hostnames.
Recording the IP address is superior from a security perspective.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |