Novell LINUX ENTERPRISE SERVER 11 - ADMINISTRATION Administration Manual page 257

Hide thumbs Also See for LINUX ENTERPRISE SERVER 11 - ADMINISTRATION:
Table of Contents

Advertisement

The second column contains the default gateway or a gateway through which a host or
network can be accessed. The third column contains the netmask for networks or hosts
behind a gateway. For example, the mask is 255.255.255.255 for a host behind a
gateway.
The fourth column is only relevant for networks connected to the local host such as
loopback, Ethernet, ISDN, PPP and dummy device. The device name must be entered
here.
An (optional) fifth column can be used to specify the type of a route. Columns that are
not needed should contain a minus sign - to ensure that the parser correctly interprets
the command. For details, refer to the routes(5) man page.
/etc/resolv.conf
The domain to which the host belongs is specified in this file (keyword search). Also
listed is the status of the name server address to access (keyword nameserver).
Multiple domain names can be specified in the file. When resolving a name that is not
fully qualified, an attempt is made to generate one by attaching the individual search
entries. Multiple name servers can be specified in multiple lines, each beginning with
nameserver. Comments are preceded by # signs.
Example 17.5, "/etc/resolv
.conf"
(page 243) shows what /etc/resolv.conf could look like.
However, the /etc/resolv.conf should not be edited by hand. Instead, it is gen-
erated by the netconfig script. To define static DNS configuration without using
YaST, edit the appropriate variables manually in the /etc/sysconfig/network/
config file: NETCONFIG_DNS_STATIC_SEARCHLIST (list of DNS domain names
used for hostname lookup), NETCONFIG_DNS_STATIC_SERVERS (list of name
server IP addresses to use for hostname lookup), NETCONFIG_DNS_FORWARDER
(defines the name of the DNS forwarder that has to be configured). To disable DNS
configuration using netconfig, set NETCONFIG_DNS_POLICY=''. For more infor-
mation about netconfig, see man 8 netconfig.
Example 17.5 /etc/resolv.conf
# Our domain
search example.com
#
# We use dns.example.com (192.168.1.116) as nameserver
nameserver 192.168.1.116
Basic Networking
243

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11

Table of Contents