
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. When resolving a name that is not fully
qualified, an attempt is made to generate one by attaching the individual
search
entries.
Use multiple name servers by entering several lines, each beginning with
nameserver
.
Precede comments with
#
signs. YaST enters the specified name server in this file.
Example 30.5, “
/etc/resolv.conf
”
(page 585) shows what
/etc/resolv.conf
could look like.
Example 30.5
/etc/resolv.conf
# Our domain
search example.com
#
# We use sun (192.168.0.20) as nameserver
nameserver 192.168.0.20
Some services, like
pppd
(
wvdial
),
ipppd
(
isdn
),
dhcp
(
dhcpcd
and
dhclient
),
pcmcia
, and
hotplug
, modify the file
/etc/resolv.conf
by
means of the script
modify_resolvconf
. If the file
/etc/resolv.conf
has
been temporarily modified by this script, it contains a predefined comment giving in-
formation about the service that modified it, the location where the original file has
been backed up, and how to turn off the automatic modification mechanism. If
/etc/
resolv.conf
is modified several times, the file includes modifications in a nested
form. These can be reverted in a clean way even if this reversal takes place in an order
different from the order in which modifications were introduced. Services that may
need this flexibility include
isdn
,
pcmcia
, and
hotplug
.
If a service was not terminated in a normal, clean way,
modify_resolvconf
can
be used to restore the original file. Also, on system boot, a check is performed to see
whether there is an uncleaned, modified
resolv.conf
, for example, after a system
crash, in which case the original (unmodified)
resolv.conf
is restored.
Basic Networking
585
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......