diff --git a/README.md b/README.md index d949a72..3587c82 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 🧩 DNS-over-TLS Cache Proxy +# DNS-over-TLS Cache Proxy 一个用 **Go** 编写的高性能 **DNS-over-TLS (DoT)** 缓存代理服务, 专为隐私保护与性能优化而设计。支持多上游并发解析、智能缓存、ECS 剥离和优雅关闭。 @@ -22,7 +22,7 @@ ```bash git clone https://git.aixiao.me/aixiao/dot.git cd dot -go build -o dot main.go +bash build.sh bin ``` ### 使用 Docker 构建与运行 @@ -47,7 +47,16 @@ bash build.sh clean ## ⚙️ 启动示例 ```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 + ``` 启动日志示例: diff --git a/dot b/dot index 57c87dd..726a612 100644 Binary files a/dot and b/dot differ diff --git a/go.mod b/go.mod index 387c520..a5bab76 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module dot -go 1.25.2 +go 1.25.3 require ( github.com/hashicorp/golang-lru/v2 v2.0.7