[PATCH] hostname.7: HOSTALIASES/search path processing is DNS-specific

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

 



Other NSS modules do not necessarily honor these settings.
---
 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)
-- 
2.20.1



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux