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 19.5, "/etc/resolv
.conf"
(page 256) 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 19.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
/sbin/netconfig
netconfig is a modular tool to manage additional network configuration settings. It
merges statically defined settings with settings provided by autoconfiguration mecha-
nisms as dhcp or ppp according to a predefined policy. The required changes are applied
to the system by calling the netconfig modules that are responsible for modifying a
configuration file and restarting a service or a similar action.
256
Administration Guide
Need help?
Do you have a question about the LINUX ENTERPRISE DESKTOP 11 - ADMINISTRATION GUIDE 17-03-2009 and is the answer not in the manual?