Browse Source

update: increase dnsproxy cache size

dev
dnomd343 3 years ago
parent
commit
4254f4925a
  1. 4
      init.sh

4
init.sh

@ -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

Loading…
Cancel
Save