Tim Rice
2021-Feb-08 03:17 UTC
[openssh-commits] [openssh] 02/02: upstream: hostname is not specified by POSIX but uname -n is, so use
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. -- Tim Rice Multitalents tim at multitalents.net
Nico Kadel-Garcia
2021-Feb-08 03:42 UTC
[openssh-commits] [openssh] 02/02: upstream: hostname is not specified by POSIX but uname -n is, so use
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