cancel
Showing results for 
Search instead for 
Did you mean: 

Question on "who" command in Unix

former_member84399
Participant
0 Kudos

Dear all,

I am accessing a Unix (Solaris 10) host via putty. I login as root and I execute the who command.

I get an output like the below

root pts/2 Jan 22 08:16 (423t51j.virago.internal.uk)

where 423t51j is the network name of my PC

Hours later, I connect from the same PC with putty and execute "who" but the terminal name appears different

root pts/2 Jan 22 11:16 (423t51j.finance.local)

Any ideas where this is set and how I can make it stay with the correct network name (which is the second , finance.local )

Many thanks

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

Check your entry in /etc/nsswitch.conf if you entered the correct nameserver.

Markus

Answers (1)

Answers (1)

Former Member
0 Kudos

This is probably pulled from the your DNS server based on your incoming address (or maybe your hosts file if DNS is unreachable). Have you tried running the 'who' command several times to see if this changes?

Just a thought.

J. Haynes

Denver, CO

former_member84399
Participant
0 Kudos

Hello,

My Unix admin found this for me after some search, he had to change the name server definition in /etc/resolv.conf

Thank you very much for your help

Andreas