[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: who/w/finger/last printing ip address



 Hi.

On Tue, Sep 08, 2015 at 12:39:06PM +0100, Michael Grant wrote:
> Any idea why I'm NOT getting hostnames by default?
> 
> $ who
> mgrant   pts/1        2015-09-05 07:30 (10.20.30.40:S.1)
> mgrant   pts/2        2015-09-05 07:30 (10.20.30.40:S.2)
> mgrant   pts/3        2015-09-05 07:30 (10.20.30.40:S.3)
> mgrant   pts/4        2015-09-05 07:30 (10.20.30.40:S.4)
> $ w
>  07:34:29 up 3 days, 6 min,  4 users,  load average: 0.03, 0.06, 0.05
> USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
> mgrant   pts/1    10.20.30.40:S. Sat07   26:48m  0.09s  0.09s /bin/bash
> $  finger
> Login     Name            Tty      Idle  Login Time   Office     Office Phone
> mgrant    Michael Grant   pts/1      1d  Sep  5 07:30 (10.20.30.40:S.1)
> mgrant    Michael Grant   pts/2   14:12  Sep  5 07:30 (10.20.30.40:S.2)
> mgrant    Michael Grant   pts/3          Sep  5 07:30 (10.20.30.40:S.3)
> mgrant    Michael Grant   pts/4      3d  Sep  5 07:30 (10.20.30.40:S.4)

Because your host is unable to resolve the IPs to hostnames, maybe?
What does 'getent hosts 10.20.30.40' show?

Reco


Reply to: