[openssh-commits] [openssh] 02/02: upstream: hostname is not specified by POSIX but uname -n is, so use

Nico Kadel-Garcia nkadel at gmail.com
Mon Feb 8 14:42:32 AEDT 2021


On Sun, Feb 7, 2021 at 10:21 PM Tim Rice <tim at multitalents.net> wrote:
>
> On Sun, 7 Feb 2021, Bob Proulx wrote:
>
> >     rwp at havoc:~$ hostname
> >     havoc
> >
> > Getting a FQDN is truly not trivial. :-(
>
> True, and some hostname (ubuntu, centos, etc) implimentations have
> "hostname -f" for the FQDN.

It's especially aggravated by many configuration tools listing the
short hostname first, then the full hostname, in /etc/hosts. i.e.:

    127.0.0.1 short.long.com short localhost.localdomian localhost


More information about the openssh-unix-dev mailing list