#313413 libc6: $HOSTALIASES does not allow IP-address

Package:
libc6
Source:
glibc
Description:
GNU C Library: Shared libraries
Submitter:
Stepan Koltsov
Date:
2015-12-13 17:21:08 UTC
Severity:
wishlist
#313413#5
Date:
2005-06-13 14:49:00 UTC
From:
To:
Hello,

$HOSTALIASES points to the file with aliases for hostnames. I can write
full hostname as alias, by I can't write IP. See:

# host banana.mx1.ru
banana.mx1.ru has address 158.250.16.19

# cat $HOSTALIASES
kash banana.mx1.ru

# telnet kash
Trying 158.250.16.19...
^C

# cat $HOSTALIASES
kash 158.250.16.19

# telnet kash
telnet: could not resolve kash/telnet: Name or service not known


Thanks,

S.

#313413#10
Date:
2015-12-13 17:17:11 UTC
From:
To:
What possible use is this? This is what /etc/hosts is for.