Hello Florian, On 4/23/19 4:11 AM, Florian Weimer wrote:
Other NSS modules do not necessarily honor these settings.
Thanks. Patch applied. Cheers, Michael
--- man7/hostname.7 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/man7/hostname.7 b/man7/hostname.7 index 4c07485c7..f8a337c39 100644 --- a/man7/hostname.7 +++ b/man7/hostname.7 @@ -65,8 +65,16 @@ which must generally translate the name to an address for use. .BR getaddrinfo (3) or the obsolete .BR gethostbyname (3).) -Hostnames are resolved by the Internet name resolver in the following -fashion. +.PP +Hostnames are resolved by the NSS framework in glibc according +to the +.B hosts +configuration in +.BR nsswitch.conf . +The DNS-based name resolver +(in the +.B dns +NSS service module) resolves them in the following fashion. .PP If the name consists of a single component, that is, contains no dot, and if the environment variable @@ -100,6 +108,7 @@ by a system-wide configuration file (see .SH SEE ALSO .BR getaddrinfo (3), .BR gethostbyname (3), +.BR nsswitch.conf (5), .BR resolver (5), .BR mailaddr (7), .BR named (8)