docs(readme): 更新 README 中的构建命令和启动示例

- 移除 emoji 前缀,简化项目标题
- 将 `go build` 命令替换为 `bash build.sh bin`
- 重新格式化启动命令,使用反斜线换行提高可读性
- 更新上游 DNS 服务器列表及部分参数配置
- 添加 blacklist-file 参数说明

build(go): 升级 Go 版本至 1.25.3
This commit is contained in:
2025-10-16 10:25:42 +08:00
parent 75f90e4706
commit 20d0ddc18e
3 changed files with 13 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
# 🧩 DNS-over-TLS Cache Proxy # DNS-over-TLS Cache Proxy
一个用 **Go** 编写的高性能 **DNS-over-TLS (DoT)** 缓存代理服务, 一个用 **Go** 编写的高性能 **DNS-over-TLS (DoT)** 缓存代理服务,
专为隐私保护与性能优化而设计。支持多上游并发解析、智能缓存、ECS 剥离和优雅关闭。 专为隐私保护与性能优化而设计。支持多上游并发解析、智能缓存、ECS 剥离和优雅关闭。
@@ -22,7 +22,7 @@
```bash ```bash
git clone https://git.aixiao.me/aixiao/dot.git git clone https://git.aixiao.me/aixiao/dot.git
cd dot cd dot
go build -o dot main.go bash build.sh bin
``` ```
### 使用 Docker 构建与运行 ### 使用 Docker 构建与运行
@@ -47,7 +47,16 @@ bash build.sh clean
## ⚙️ 启动示例 ## ⚙️ 启动示例
```bash ```bash
./dot -cert=server.crt -key=server.key -addr=":853" -upstream="8.8.8.8:53,1.1.1.1:53" -cache-ttl=120s -timeout=3s -max-parallel=2 -strip-ecs=true -tcp-fallback=true -v ./dot \
-cert aixiao.me.cer \
-key aixiao.me.key \
-addr :853 \
-upstream 119.29.29.29:53,223.5.5.5:53,114.114.114.114:53 \
-cache-ttl 300s \
-timeout 3s \
-max-parallel 3 \
-blacklist-file blacklist.txt
``` ```
启动日志示例: 启动日志示例:

BIN
dot

Binary file not shown.

2
go.mod
View File

@@ -1,6 +1,6 @@
module dot module dot
go 1.25.2 go 1.25.3
require ( require (
github.com/hashicorp/golang-lru/v2 v2.0.7 github.com/hashicorp/golang-lru/v2 v2.0.7