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

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Tue, 9 Feb 2021 at 11:35, Nico Kadel-Garcia <nkadel@xxxxxxxxx> wrote:
[about hostname -f]
> It looks in /etc/hosts first, which works very well when DNS is
> unavailable and when the host is publishing a dynamic DNS entry.

It *might* look in /etc/hosts first, depending on what's in
/etc/nsswitch.conf.  At least with glibc anyway, other libc
implementations might do something different again.  Anyway it's far
enough into "it depends" that it's not something I'd want to rely on,
and as it stands it looks like we don't need to.

-- 
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux