Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual page 606

Table of Contents

Advertisement

Example 31.6 /etc/hosts
127.0.0.1 localhost
192.168.0.20 sun.example.com sun
192.168.0.0 earth.example.com earth
/etc/networks
Here, network names are converted to network addresses. The format is similar to that
of the hosts file, except the network names precede the addresses. See
"/etc/networks"
Example 31.7 /etc/networks
loopback
localnet
/etc/host.conf
Name resolution—the translation of host and network names via the resolver library—is
controlled by this file. This file is only used for programs linked to libc4 or libc5. For
current glibc programs, refer to the settings in /etc/nsswitch.conf. A parameter
must always stand alone in its own line. Comments are preceded by a # sign.
"Parameters for /etc/host.conf"
/etc/host.conf is shown in
Table 31.6
order hosts, bind
multi on/off
606
Installation and Administration
(page 606).
127.0.0.0
192.168.0.0
(page 606) shows the parameters available. A sample
Example 31.8, "
Parameters for /etc/host.conf
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: Uses NIS
Defines if a host entered in /etc/hosts can have multiple
IP addresses.
Example 31.7,
/etc/host.conf
Table 31.6,
"
(page 607).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents