My Oracle Support Banner

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 later
Information in this document applies to any platform.
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on SPARC (64-bit)


Why who  doesn't return the FQDN in Solaris 11.4 ?

root@solaris:~# who
oracle     pts/2        May 28 04:31    (

Nslookup properly resolving the name

root@solaris:~# nslookup

Non-authoritative answer:     name =

root@solaris:~# pkg list entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            11.4-        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. 


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.