Browse Source

update: change acceleration domain to `cdn.dnomd343.top`

dev
Dnomd343 2 years ago
parent
commit
175a3e97cb
  1. 6
      Dockerfile
  2. 20
      README.md
  3. 14
      assets/README.md
  4. 6
      src/loader/default.c

6
Dockerfile

@ -56,9 +56,9 @@ RUN cmake -DCMAKE_EXE_LINKER_FLAGS=-static .. && make && strip cleardns && mv cl
FROM ${ALPINE} AS build
RUN apk add upx xz
WORKDIR /release/
RUN wget https://res.dnomd343.top/Share/cleardns/gfwlist.txt.xz && \
wget https://res.dnomd343.top/Share/cleardns/china-ip.txt.xz && \
wget https://res.dnomd343.top/Share/cleardns/chinalist.txt.xz && \
RUN wget https://cdn.dnomd343.top/cleardns/gfwlist.txt.xz && \
wget https://cdn.dnomd343.top/cleardns/china-ip.txt.xz && \
wget https://cdn.dnomd343.top/cleardns/chinalist.txt.xz && \
xz -d *.xz && tar cJf assets.tar.xz *.txt && rm *.txt
COPY --from=cleardns /tmp/cleardns /release/usr/bin/
COPY --from=dnsproxy /tmp/dnsproxy /release/usr/bin/

20
README.md

@ -64,6 +64,14 @@ ClearDNS 支持多种 DNS 协议,首先是常规 DNS ,即基于 UDP 或 TCP
+ `chinalist.txt` :`https://res.343.re/Share/cleardns/chinalist.txt`
国内用户直接访问下载站可能偏慢,建议使用以下镜像地址:
+ `gfwlist.txt` :`https://cdn.dnomd343.top/cleardns/gfwlist.txt`
+ `china-ip.txt` :`https://cdn.dnomd343.top/cleardns/china-ip.txt`
+ `chinalist.txt` :`https://cdn.dnomd343.top/cleardns/chinalist.txt`
在 ClearDNS 的默认配置文件中,使用了本项目的分流资源作为更新上游,您可以修改配置,指向自定义资源(支持多个本地或远程文件),也可禁用更新。
## 命令行参数
@ -132,9 +140,9 @@ foreign:
assets:
cron: "0 4 * * *"
update:
gfwlist.txt: https://res.dnomd343.top/Share/cleardns/gfwlist.txt
china-ip.txt: https://res.dnomd343.top/Share/cleardns/china-ip.txt
chinalist.txt: https://res.dnomd343.top/Share/cleardns/chinalist.txt
gfwlist.txt: https://cdn.dnomd343.top/cleardns/gfwlist.txt
china-ip.txt: https://cdn.dnomd343.top/cleardns/china-ip.txt
chinalist.txt: https://cdn.dnomd343.top/cleardns/chinalist.txt
```
### Port
@ -306,10 +314,10 @@ assets:
disable: false
cron: "0 4 * * *"
update:
gfwlist.txt: https://res.dnomd343.top/Share/cleardns/gfwlist.txt
china-ip.txt: https://res.dnomd343.top/Share/cleardns/china-ip.txt
gfwlist.txt: https://cdn.dnomd343.top/cleardns/gfwlist.txt
china-ip.txt: https://cdn.dnomd343.top/cleardns/china-ip.txt
chinalist.txt:
- https://res.dnomd343.top/Share/cleardns/chinalist.txt
- https://cdn.dnomd343.top/cleardns/chinalist.txt
- /tmp/chinalist-local.txt
- demo.list # aka `${WorkDir}/assets/demo.list`
custom.txt:

14
assets/README.md

@ -64,13 +64,15 @@ https://github.com/felixonmars/dnsmasq-china-list/raw/master/accelerated-domains
## 下发地址
> 服务端支持 Gzip 和 Brotli 压缩,纯文本资源下载时启用可显著加快速度。
FTP 链接:
+ `gfwlist.txt` :`https://res.343.re/Share/cleardns/gfwlist.txt`
+ `china-ip.txt` :`https://res.343.re/Share/cleardns/china-ip.txt`
+ `chinalist.txt` :`https://res.343.re/Share/cleardns/chinalist.txt`
> 纯文本文件在压缩后可显著减少体积,加快下载速度。
> 如果下载工具不支持压缩,可以使用以下预压缩文件,加快下载速度。
压缩资源链接:
@ -78,10 +80,10 @@ FTP 链接:
+ `china-ip.txt` :`https://res.343.re/Share/cleardns/china-ip.txt.xz`
+ `chinalist.txt` :`https://res.343.re/Share/cleardns/chinalist.txt.xz`
> `res.343.re` 为主 FTP 地址,`res.dnomd343.top` 为 CDN 镜像地址,国内用户访问更快。
> `res.343.re` 为主 FTP 地址,`cdn.dnomd343.top` 为 CDN 镜像地址,国内用户访问更快。
国内加速地址
CDN 下载链接
+ `gfwlist.txt` :`https://res.dnomd343.top/Share/cleardns/gfwlist.txt.xz`
+ `china-ip.txt` :`https://res.dnomd343.top/Share/cleardns/china-ip.txt.xz`
+ `chinalist.txt` :`https://res.dnomd343.top/Share/cleardns/chinalist.txt.xz`
+ `gfwlist.txt` :`https://cdn.dnomd343.top/cleardns/gfwlist.txt`
+ `china-ip.txt` :`https://cdn.dnomd343.top/cleardns/china-ip.txt`
+ `chinalist.txt` :`https://cdn.dnomd343.top/cleardns/chinalist.txt`

6
src/loader/default.c

@ -44,9 +44,9 @@ foreign:\n\
assets:\n\
cron: \"0 4 * * *\"\n\
update:\n\
gfwlist.txt: https://res.dnomd343.top/Share/cleardns/gfwlist.txt\n\
china-ip.txt: https://res.dnomd343.top/Share/cleardns/china-ip.txt\n\
chinalist.txt: https://res.dnomd343.top/Share/cleardns/chinalist.txt\n\
gfwlist.txt: https://cdn.dnomd343.top/cleardns/gfwlist.txt\n\
china-ip.txt: https://cdn.dnomd343.top/cleardns/china-ip.txt\n\
chinalist.txt: https://cdn.dnomd343.top/cleardns/chinalist.txt\n\
"
void load_default_config(const char *config_file) {

Loading…
Cancel
Save