8ff27083df
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1309 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
24 lines
449 B
Bash
Executable File
24 lines
449 B
Bash
Executable File
#!/bin/sh
|
|
|
|
FILE=/etc/named.conf
|
|
|
|
#unalias cp
|
|
cp -f $FILE ${FILE}.ORIG
|
|
|
|
echo "options {
|
|
directory \"/var/named\";
|
|
dump-file \"/var/named/data/cache_dump.db\";
|
|
statistics-file \"/var/named/data/named_stats.txt\";
|
|
memstatistics-file \"/var/named/data/named_mem_stats.txt\";
|
|
recursion yes;
|
|
forward only;
|
|
forwarders {" >$FILE
|
|
|
|
for i in $(grep "^nameserver" /etc/resolv.conf | awk '{print $2}')
|
|
do
|
|
echo " $i;"
|
|
done >>$FILE
|
|
echo " };
|
|
};" >>$FILE
|
|
|