SuSE Support Database

Title: Nameserver - configuring several nameservers

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- 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 ---- Searchform ---- History ---- Versions ---- Categories ---- Contents
Deutsch
---

SDB-ma_5, Copyright SuSE GmbH, Nuremberg, Germany
Impressum - Last generated: 24. Feb 1999 15:00:19 by maddin with sdb_gen 1.00.0