mirror of https://github.com/dnomd343/ClearDNS
Dnomd343
2 years ago
2 changed files with 0 additions and 54 deletions
@ -1,37 +0,0 @@ |
|||
bindAddress: :5353 |
|||
dohEnabled: false |
|||
primaryDNS: |
|||
- name: Domestic |
|||
address: 127.0.0.1:4053 |
|||
protocol: udp |
|||
socks5Address: |
|||
timeout: 6 |
|||
ednsClientSubnet: |
|||
policy: disable |
|||
externalIP: |
|||
noCookie: true |
|||
alternativeDNS: |
|||
- name: Foreign |
|||
address: 127.0.0.1:6053 |
|||
protocol: udp |
|||
socks5Address: |
|||
timeout: 6 |
|||
ednsClientSubnet: |
|||
policy: disable |
|||
externalIP: |
|||
noCookie: true |
|||
onlyPrimaryDNS: false |
|||
ipv6UseAlternativeDNS: false |
|||
alternativeDNSConcurrent: true |
|||
whenPrimaryDNSAnswerNoneUse: alternativeDNS |
|||
ipNetworkFile: |
|||
primary: /etc/cleardns/asset/china-ip.txt |
|||
alternative: /dev/null |
|||
domainFile: |
|||
primary: /etc/cleardns/asset/chinalist.txt |
|||
alternative: /etc/cleardns/asset/gfwlist.txt |
|||
matcher: suffix-tree |
|||
hostsFile: |
|||
hostsFile: /etc/hosts |
|||
finder: full-map |
|||
cacheSize: 4096 |
@ -1,17 +0,0 @@ |
|||
#!/bin/sh |
|||
ASSET_DIR="/etc/cleardns/asset" |
|||
[ -f "$ASSET_DIR/no-update" ] && exit |
|||
|
|||
TEMP_DIR="$ASSET_DIR/temp" |
|||
rm -rf "$TEMP_DIR" && mkdir -p "$TEMP_DIR" |
|||
wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/gfwlist/gfwlist.txt.gz |
|||
wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/chinalist/china-ip.txt.gz |
|||
wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/chinalist/chinalist.txt.gz |
|||
|
|||
gunzip $TEMP_DIR/*.gz |
|||
[ -s "$TEMP_DIR/gfwlist.txt" ] && mv -f "$TEMP_DIR/gfwlist.txt" "$ASSET_DIR" |
|||
[ -s "$TEMP_DIR/chinalist.txt" ] && mv -f "$TEMP_DIR/chinalist.txt" "$ASSET_DIR" |
|||
[ -s "$TEMP_DIR/china-ip.txt" ] && mv -f "$TEMP_DIR/china-ip.txt" "$ASSET_DIR" |
|||
|
|||
rm -rf "$TEMP_DIR" |
|||
pgrep overture | xargs kill |
Loading…
Reference in new issue