027a461
--- net-tools-1.60/man/en_US/hostname.1.gethostbyname	2005-10-14 11:33:41.000000000 +0200
027a461
+++ net-tools-1.60/man/en_US/hostname.1	2005-10-15 11:46:14.646697600 +0200
19162aa
@@ -99,6 +99,33 @@
027a461
 complete FQDN of the system is returned with
027a461
 .BR "hostname \-\-fqdn" .
027a461
 
027a461
+.LP
027a461
+The function 
027a461
+.BR gethostname(2)
19162aa
+is used to get the hostname.  When the 
19162aa
+.BR "hostname \-a, \-d, \-f or \-i" 
027a461
+is called will 
331d28b
+.BR gethostbyname(3)
027a461
+be called.  The difference in 
027a461
+.BR gethostname(2)
027a461
+and
331d28b
+.BR gethostbyname(3)
027a461
+is that
331d28b
+.BR gethostbyname(3)
027a461
+is network aware, so it consults 
027a461
+.IR /etc/nsswitch.conf
027a461
+and
027a461
+.IR /etc/host.conf
027a461
+to decide whether to read information in
027a461
+.IR /etc/sysconfig/network
027a461
+or
027a461
+.IR /etc/hosts
19162aa
+
19162aa
+To add another dimension to this,
027a461
+the 
027a461
+.B hostname 
027a461
+is also set when the network interface is brought up.
027a461
+
027a461
 .SS "SET NAME"
027a461
 When called with one argument or with the 
027a461
 .B \-\-file