|
@ -15,14 +15,14 @@ while read -r raw |
|
|
do |
|
|
do |
|
|
cmd="$cmd -u $raw" |
|
|
cmd="$cmd -u $raw" |
|
|
done < /etc/cleardns/upstream/domestic |
|
|
done < /etc/cleardns/upstream/domestic |
|
|
eval "$cmd --cache --all-servers > /dev/null 2>&1 &" |
|
|
eval "$cmd --cache --cache-size=4194304 --all-servers > /dev/null 2>&1 &" |
|
|
|
|
|
|
|
|
cmd="dnsproxy -p 6053" |
|
|
cmd="dnsproxy -p 6053" |
|
|
while read -r raw |
|
|
while read -r raw |
|
|
do |
|
|
do |
|
|
cmd="$cmd -u $raw" |
|
|
cmd="$cmd -u $raw" |
|
|
done < /etc/cleardns/upstream/foreign |
|
|
done < /etc/cleardns/upstream/foreign |
|
|
eval "$cmd --cache --all-servers > /dev/null 2>&1 &" |
|
|
eval "$cmd --cache --cache-size=4194304 --all-servers > /dev/null 2>&1 &" |
|
|
|
|
|
|
|
|
rm -f /etc/cleardns/upstream/domestic |
|
|
rm -f /etc/cleardns/upstream/domestic |
|
|
rm -f /etc/cleardns/upstream/foreign |
|
|
rm -f /etc/cleardns/upstream/foreign |
|
|