15 lines
394 B
Bash
Executable File
15 lines
394 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
if [ -f /etc/dnsroots.global ] ; then
|
|
if [ ! -f /etc/dnsroots.global.ORIG ] ; then
|
|
cp /etc/dnsroots.global /etc/dnsroots.global.ORIG
|
|
fi
|
|
fi
|
|
|
|
dnsip `dnsqr ns . | awk '/answer:/ { print $5; }' |sort` > /etc/dnsroots.global
|
|
cp /etc/dnsroots.global /service/dnscache/root/servers/@
|
|
svc -du /service/dnscache
|
|
|