From 921e2cfd1fc69e052adcdbc9a44b469078bbf832 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 23 Apr 2019 11:11:33 +0200 Subject: [PATCH] hostname.7: HOSTALIASES/search path processing is DNS-specific Other NSS modules do not necessarily honor these settings. Signed-off-by: Michael Kerrisk --- man7/hostname.7 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/man7/hostname.7 b/man7/hostname.7 index 4c07485c7a..f8a337c390 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) -- 2.39.2