Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual page 652

Table of Contents

Advertisement

Example 30.6 /etc/hosts
127.0.0.1 localhost
192.168.0.20 sun.example.com sun
192.168.0.1 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 30.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 30.6
order hosts, bind
636
Deployment Guide
(page 636).
127.0.0.0
192.168.0.0
(page 636) shows the parameters available. A sample
Example 30.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
Example 30.7,
/etc/host.conf
Table 30.6,
"
(page 637).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents