Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 436 — #462
i
i
i
i
i
i
i
i
Table 21.5: Parameters for /etc/host.conf
order hosts, bind Specifies in which order the services are accessed
for the name resolution. Available arguments are
(separated by blank spaces or commas):
hosts: Searches the /etc/hosts file
bind: Accesses a name server
nis: Via NIS
multi on/off Defines if a host entered in /etc/hosts can
have multiple IP addresses.
nospoof on spoofalert
on/off
These parameters influence the name server
spoofing, but, apart from that, do not exert any
influence on the network configuration.
trim domainname The specified domain name is separated from
the host name after host name resolution (as
long as the host name includes the domain
name). This option is useful if only names from
the local domain are in the /etc/hosts file,
but should still be recognized with the attached
domain names.
Example 21.8: /etc/host.conf
# We have named running
order hosts bind
# Allow multiple addrs
multi on
/etc/nsswitch.conf
The introduction of the GNU C Library 2.0 was accompanied by the
introduction of the “Name Service Switch” (NSS). Refer to man 5
nsswitch.conf and The GNU C Library Reference Manual for details.
The order for queries is defined in the file /etc/nsswitch.conf. An
example of nsswitch.conf is shown in Example 21.9 on the next page.
Comments are introduced by # signs. In this example, the entry under the
hosts database means that a request is sent to /etc/hosts (files) via
DNS (see Section 21.7 on page 458).
436
21.3. Manual Network Configuration










