trim domainname
Example 30.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 the nsswitch.conf(5) man page and
The GNU C Library Reference Manual for details.
The order for queries is defined in the file /etc/nsswitch.conf. A sample
nsswitch.conf is shown in Example 30.9, "/etc/nsswitch.conf" (page 594).
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 Chap-
ter 33, The Domain Name System (page 615)).
Example 30.9 /etc/nsswitch.conf
passwd:
group:
hosts:
networks:
services:
protocols:
netgroup:
automount:
594
Installation and Administration
The specified domain name is separated from the hostname
after hostname resolution (as long as the hostname 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.
compat
compat
files dns
files dns
db files
db files
files
files nis