Initial import
This commit is contained in:
14
update_djbdns_roots.sh
Executable file
14
update_djbdns_roots.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user