Specifications

Figure 2.5: YaST2: Configuring the Name Server
consisting of the IP address, the fully qualified host name, and the host
name (e. g., earth) is entered into the file. The IP address must be at
the beginning of the line. The entries should be separated by blanks
and tabs. Comments are always preceded by the ‘#’ sign.
#
# hosts This file describes a number of host name-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses,
# and any aliases to this file.
#
127.0.0.1 localhost
192.168.0.1 sun.cosmos.com sun
192.168.0.20 earth.cosmos.com earth
# End of hosts
File 1: /etc/hosts
/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 File 2).
24 Manual Network Configuration