SuSE GmbH

SuSE Support Database

Title: Nameserver - configuring several nameservers

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

Nameserver - configuring several nameservers

Problem: More than one nameserver has been configured (with YaST or by editing the variables NAMESERVER in /etc/rc.config. By spacing the IP addresses' separated list.).

However, only the first nameserver is addressed by the file produced by SuSEconfig, /etc/resolv.conf.

Solution: Change the file /sbin/SuSEconfig. Replace the section:

if test -n "$SEARCHLIST" -a -n "$NAMESERVER"; then
    echo -e "search $SEARCHLIST\nnameserver $NAMESERVER\n" > 
$r/etc/resolv.conf
fi

by

if test -n "$SEARCHLIST" -a -n "$NAMESERVER"; then
    echo -e "search $SEARCHLIST"     >  $r/etc/resolv.conf
    for SERVER in $NAMESERVER; do
        echo -e "nameserver $SERVER" >> $r/etc/resolv.conf
    done
fi

----------

Keywords: S.U.S.E.LINUX 4.2, SUSECONFIG, NAMESERVER, YAST

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-ma_5, Copyright SuSE GmbH, Nuremberg, Germany
SuSE GmbH - Last generated: 07. Oct 1999 16:58:24 by maddin with sdb_gen 1.00.0