Unable to Set $DNSSRVS

n43w79 n43w79 at gmail.com
Sun Nov 6 17:57:52 CET 2011


Hi, FAT version 3.4.7,
For testing, I have a file in /srv/fai/config/class/DEMO.var:
DNSSRVS='192.168.1.254 206.248.154.22 206.248.154.170'

And expect 
/srv/fai/nfsroot/live/filesystem.dir/usr/lib/fai/create_resolv_conf(Quote):

   for dnshost in $DNSSRVS ; do
     echo "nameserver $dnshost" >>/etc/resolv.conf
   done

to create /etc/resolv.conf like this:
....
nameserver 192.168.1.254
nameserver 206.248.154.22
nameserver 206.248.154.170

Q1. What am I doing wrong?
Q2. Also, how do I set DNSSRVS_1?
Thanks!
Kwon


More information about the linux-fai mailing list