Good afternoon.
I have a small problem with the "who" command in a Debian Stretch.
When I do a "who i am" in Debian wheezy
the result is:
Quote:
gestion pts/0 2019-03-11 17:17 (juan)
|
And when I do it from STRETCH, the output is:
Quote:
gestion pts/0 2019-03-11 17:17 (194.1.80.205)
|
The difference is that the name I have in /etc/hosts comes out in Wheezy, and the IP comes out in STRETCH.
That is an inconvenience for me, because in another process I extract the name with "awk" to reuse it in other processes.
I was googling the weekend without finding any clear reference,
I show you the -files- that I think are involved in the subject.
An extract of the /etc/hosts is:
Quote:
127.0.0.1 localhost
194.1.80.206 milinux.com milinux
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
###################
194.1.80.205 juan
|
/etc/resolv.conf
Quote:
search milinux.com
nameserver 80.58.0.33
nameserver 80.58.61.250
nameserver 80.58.61.254
|
/etc/nsswitch
Quote:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
|
Can someone tell me what may be happening?
or how to solve it?
Thank's