On Monday, July 1, 2024 6:37 PM, Ronan Pigott wrote: >July 1, 2024 at 2:47 PM, rsbecker@xxxxxxxxxxxxx wrote: > >> Would you be able to document that "thisHost" may be ambiguous, >> depending on the DNS and host resolver configuration? gethostname() is >> not entirely predictable if the localhost has multiple values. > >Hm? On linux/glibc, gethostname just uses uname(2). It does not use dns or the >name service switch. That is correct for linux/glibc. Other platforms do not necessarily use uname(2). Glibc is not available everywhere and gcc is not available everywhere. _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev