Nameserver - configuring several nameservers

Support knowledgebase (ma_5)
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

SDB-ma_5, Copyright SuSE Linux AG, Nürnberg, Germany
SuSE Linux AG - Last generated: 30. Nov 1999 by ma@suse.de SDB_CREATE: (sdb_gen 1.40.0)