gethostbyname.3: Minor tweaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-04-30 10:45:42 +02:00
parent 81d6e51d67
commit 0fe4c79a76
1 changed files with 11 additions and 8 deletions

View File

@ -224,20 +224,23 @@ The domain name queries carried out by
.BR gethostbyname ()
and
.BR gethostbyaddr ()
use a combination of any or all of Name Service Switch
.BR nsswitch.conf(5)
use a combination of any or all of the Name Service Switch
.RB ( nsswitch.conf (5))
configured sources, name servers in \fI/etc/resolv.conf\fP
.BR resolv.conf(5),
.RB ( resolv.conf (5)),
a local name server
.BR named (8),
a broken out line from \fI/etc/hosts\fP, and the Network
Information Service (NIS or YP), depending upon the contents of the
.RB ( named (8)),
a broken-out line from
.IR /etc/hosts
.RB ( hosts (5)),
and the Network
Information Service (NIS or YP), depending on the contents of the
\fIorder\fP line in
.IR /etc/host.conf .
The default action is to query the Name Service Switch
.BR nsswitch.conf(5)
.RB ( nsswitch.conf(5))
configured sources, followed by a local name server
.BR named (8).
.RB ( named (8)).
.PP
The \fIhostent\fP structure is defined in \fI<netdb.h>\fP as follows:
.sp