Debian 9 - not display name /etc/hosts

Kernels & Hardware, configuring network, installing services

Debian 9 - not display name /etc/hosts

Postby wimpactus » 2017-10-02 19:33

Hi,

In debian 7, will configure name in /etc/host,

Example: /etc/hosts
192.168.205.1 test-pc

when running a who -u, it shows the name configured in /etc/hosts in debian 7. works perfect.

when running a who -u in Debian 9, not display the name configured in /etc/hosts, display the IP.

what's different about debian 9 from debian 7 in this configuration?

Rgs,

Win
wimpactus
 
Posts: 3
Joined: 2017-10-02 19:25

Re: Debian 9 - not display name /etc/hosts

Postby cronoik » 2017-10-02 21:04

https://manpages.debian.org/stretch/coreutils/who.1.en.html wrote:-u, --users
list users logged in

Are you sure that you mean the command who with the parameter -u?
Have a nice day!
cronoik
 
Posts: 225
Joined: 2015-05-20 21:17

Re: Debian 9 - not display name /etc/hosts

Postby wimpactus » 2017-10-03 10:54

Hi,

can be without the parameter too, the result is the same, debian 7 shows the host name, debian 9 does not show.

Debian 7 imagem
Image
https://imgur.com/a/b1Gcj


Rgs

Win
wimpactus
 
Posts: 3
Joined: 2017-10-02 19:25

Re: Debian 9 - not display name /etc/hosts

Postby wimpactus » 2017-10-05 19:43

Hi,,

this only occurs on the SSH connection, TELNET shows the hostname.
wimpactus
 
Posts: 3
Joined: 2017-10-02 19:25


Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable